npm安装的时候出现 shasum check failed

lluvio 发布于 2014/03/23 16:29
阅读 12K+
收藏 0
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



加载中
0
我是潮汐
我是潮汐
这说的很清楚啊. 校验和不对. 说明你下的文件 跟服务器上的文件校验和不相等.  应该是传输过程中下载的东西受损了.. 可能是网络原因.
0
undefined_
undefined_
npm --registry http://registry.cnpmjs.org
换国内的镜像源即可
六月的特洛伊
回复 @Inocr : 确实如此
lluvio
lluvio
应该是这个吧.....npm config set registry
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部