[英]Installing cordova using cmd , <npm install -g cordova> gives error
I have installed node-js and set path to the bin folder, using Windows 7 . 我已经使用Windows 7安装了node-js并设置了bin文件夹的路径。 using cmd , i am installing cordova, with following command.
使用cmd,我正在使用以下命令安装cordova。
npm install -g cordova
it gives the following error, 它给出了以下错误,
C:\Users\admin>npm install -g cordova
npm ERR! Windows_NT 6.1.7600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs
\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cordova"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! shasum check failed for C:\Users\admin\AppData\Local\Temp\npm-27416-181
c77ac\registry.npmjs.org\cordova-app-hello-world\-\cordova-app-hello-world-3.9.0
.tgz
npm ERR! Expected: 5866d8fed5582686c68ec59a6d1097c4ec0fcc4b
npm ERR! Actual: 33c6d47bbc528da2c1b9b8e6ae592c2f5dba371f
npm ERR! From: https://registry.npmjs.org/cordova-app-hello-world/-/cordova-
app-hello-world-3.9.0.tgz
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\admin\npm-debug.log
How to get resolve the problem ? 如何解决问题?
You need to Run as Administrator
. 您需要以
Run as Administrator
身份Run as Administrator
。 Right click CMD and choose Run as Administrator
. 右键单击“ CMD”,然后选择
Run as Administrator
。 For mac, using this command, sudo npm install -g cordova
. 对于Mac,使用此命令,
sudo npm install -g cordova
。
Try using npm I -g cordova --verbose. 尝试使用npm I -g cordova --verbose。 It will log all the things in console.
它将所有内容记录在控制台中。 Watch it for any specific error.
观看是否有任何特定错误。 Where its struck.
它击中的地方。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.