1. 程式人生 > >shasum check failed解決辦法

shasum check failed解決辦法

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "F:\\Program Files\\nodejs\\node.exe" "F:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v7.10.0
npm ERR! npm  v4.2.0


npm ERR! shasum check failed for C:\Users\GUOQIANG\AppData\Local\Temp\npm-13144-c2f50cb2\registry.npmjs.org\vue\-\vue-2.5.3.tgz
npm ERR! Expected: e1a3b1f49b6e93e574ce040b95cbc873912fecc1
npm ERR! Actual:   a5fb5d281b14d3baaae845801293b7fca20eb5f3
npm ERR! From:     https://registry.npmjs.org/vue/-/vue-2.5.3.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\GUOQIANG\AppData\Roaming\npm-cache\_logs\2017-11-10T11_41_24_670Z-debug.log


解決辦法:

換一個國內NPM源就好了:

 npm config set registry="http://registry.cnpmjs.org"