简体   繁体   中英

Error to Install npm install -g cordova ionic

I design an app using ionic. When I install cordova using node.js I face these problems.

C:\Users\KSS>npm install -g cordova ionic
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" "ionic"
npm ERR! node v4.6.0
npm ERR! npm  v2.15.9

npm ERR! shasum check failed for C:\Users\KSS\AppData\Local\Temp\npm-5012-d
4aedd8a\registry.npmjs.org\ionic\-\ionic-2.1.0.tgz
npm ERR! Expected: cc4218ec13f31b635c1119c9defae5b2bad31335
npm ERR! Actual:   88177629627a16987bec942611d1ca9e69b8aba9
npm ERR! From:     https://registry.npmjs.org/ionic/-/ionic-2.1.0.tgz
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

The checksum failed npm ERR! shasum check failed npm ERR! shasum check failed

You can try upgrading to the latest version of npm :

npm install -g npm 

To upgrade to npm 3.

Also :

npm cache clean

and

npm set registry https://registry.npmjs.org/ 

As work for some https://github.com/npm/npm/issues/2701

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM