无法使用npm安装Cordova Ionic

时间:2017-06-23 06:45:10

标签: android cordova ionic-framework npm npm-install

我正在尝试使用npm中的cmdnpm install -g cordova ionic命令安装cordova离子 我收到以下错误:

Screenshot of problem

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。 我该怎么办?

1 个答案:

答案 0 :(得分:0)

以管理员身份运行>>> import numpy as np >>> squarer = lambda t: t ** 2 >>> x = np.array([1, 2, 3, 4, 5]) >>> squarer(x) array([ 1, 4, 9, 16, 25]) ,然后运行命令