使用命令" npm install -g cordova"安装cordova时出错。

时间:2016-11-30 09:44:16

标签: cordova ionic-framework

D:\Ionic\IonicDemoApp>npm install -g cordova
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\

node_modules \ NPM \ BIN \ NPM-cli.js" "安装" " -g" "科尔多瓦"

npm ERR! node v6.3.1
npm ERR! npm  v3.10.3
npm ERR! file C:\Users\amit_sharma78\AppData\Roaming\npm-cache\glob\7.1.1\packag

电子\的package.json

npm ERR! code EJSONPARSE
npm ERR! Failed to parse json
npm ERR! Unexpected token '\u0000' at 1:1
npm ERR!
npm ERR! ^
npm ERR! File: C:\Users\amit_sharma78\AppData\Roaming\npm-cache\glob\7.1.1\packa

GE \的package.json

npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse
npm ERR! Please include the following file with any support request:
npm ERR!     D:\Ionic\IonicDemoApp\npm-debug.log

0 个答案:

没有答案