无法使用NPM安装Cordova Ionic



我正在尝试使用cmd中的npm和命令npm install -g cordova ionic安装Cordova Ionic我会得到以下错误:

问题的屏幕截图

C:UsersAsus>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:UsersAsusnpm-debug.log

NOTE :我已经安装了Android SDK,Winant,git,nodejs。我应该怎么办?

作为管理员运行 cmd,然后运行命令

最新更新