npm安装的时候出现 shasum check failed
npm http GET https://registry.npmjs.org/hexo npm http 304 https://registry.npmjs.org/hexo npm http GET https://registry.npmjs.org/hexo/-/hexo-2.5.2.tgz npm http 200 https://registry.npmjs.org/hexo/-/hexo-2.5.2.tgz npm ERR! Error: shasum check failed for /root/tmp/npm-9516-cE3zw-9S/1395562406579-0.5420971906278282/tmp.tgz npm ERR! Expected: 8245abb4a8c15f71f5afdd46b60b1343eb44b0e8 npm ERR! Actual: 6f460d66108b9a1f11bdbee6d8be48e17be5eca8 npm ERR! From: https://registry.npmjs.org/hexo/-/hexo-2.5.2.tgz npm ERR! at /usr/local/lib/node_modules/npm/node_modules/sha/index.js:38:8 npm ERR! at ReadStream.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/sha/index.js:85:7) npm ERR! at ReadStream.EventEmitter.emit (events.js:117:20) npm ERR! at _stream_readable.js:920:16 npm ERR! at process._tickCallback (node.js:415:13) npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! <http://github.com/isaacs/npm/issues> npm ERR! System Linux 3.13-1-amd64 npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "hexo" "-g" npm ERR! cwd /home/inocr npm ERR! node -v v0.10.25 npm ERR! npm -v 1.3.24 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/inocr/npm-debug.log node 目前版本是 0.10.25和26都试过,还是不行. os debian testing
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
应该是这个吧.....npm config set registry
回复
@Inocr : 确实如此
换国内的镜像源即可
这说的很清楚啊. 校验和不对. 说明你下的文件 跟服务器上的文件校验和不相等. 应该是传输过程中下载的东西受损了.. 可能是网络原因.