其他分享
首页 > 其他分享> > npm ERR! shasum check failed for

npm ERR! shasum check failed for

作者:互联网

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

标签:npm,node,shasum,ERR,tgz,failed,org,npmjs
来源: https://blog.csdn.net/qq_34817440/article/details/100034309