npm ERR! shasum check failed for

nmp install 爆了一片错

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ios-deploy@1.9.4 (node_modules\weexplus\node_modules\ios-deploy):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for ios-deploy@1.9.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! Windows_NT 10.0.17134
npm ERR! argv "D:\\develop\\nodejs\\node.exe" "D:\\develop\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "weexplus" "-g"
npm ERR! node v11.10.0
npm ERR! npm  v3.10.10

npm ERR! shasum check failed for C:\Users\Lenovo\AppData\Local\Temp\npm-18604-8bd97bd6\registry.npmjs.org\npm\-\npm-5.10.0.tgz
npm ERR! Expected: 3bec62312c94a9b0f48f208e00b98bf0304b40db
npm ERR! Actual:   f9126ba0df38eae5b63fa34d5f7c68006c08dcae
npm ERR! From:     https://registry.npmjs.org/npm/-/npm-5.10.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!     D:\YLKJPro\npm-debug.log

其实就是网络的问题,害我折腾半天, 使用手机开个wifi 热点,连上然后再执行 就搞定了

还有下载失败后,当再次执行下载会提示

npm ERR! tar.unpack unzip error C:\Users\Lenovo\AppData\Local\Temp\npm-15664-5f9d310e\registry.npmjs.org\fsevents\-\fsevents-1.1.3.tgz
npm ERR! tar.unpack untar error C:\Users\Lenovo\AppData\Local\Temp\npm-15664-5f9d310e\registry.npmjs.org\fsevents\-\fsevents-1.1.3.tgz

运行如下命令解决

npm cache clean
posted @ 2019-08-23 11:29  奔跑的痕迹  阅读(292)  评论(0编辑  收藏  举报