0
我想在cmd
,並用命令npm install -g cordova ionic
我收到以下錯誤,安裝使用npm
科爾多瓦離子安裝科爾多瓦離子:無法使用NPM
C:\Users\Asus>npm install -g cordova ionic
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cordova" "ionic"
npm ERR! node v7.4.0
npm ERR! npm v4.0.5
npm ERR! Cannot read property 'path' of null
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Asus\npm-debug.log
注意 :我已經預先安裝了android sdk,winant,git,nodejs。 我該怎麼辦?您的幫助將受到高度讚賞。
運行CMD作爲管理員沒有help.Still給出了同樣的錯誤! –