dotSlashLu/nodescws

使用 npm 安装 v0.2.1 版时会报错

Frully opened this issue · 2 comments

[root@localhost scws]# npm install scws
npm http GET https://registry.npmjs.org/scws
npm http 200 https://registry.npmjs.org/scws
npm http GET https://registry.npmjs.org/scws/-/scws-0.2.1.tgz
npm http 200 https://registry.npmjs.org/scws/-/scws-0.2.1.tgz
npm ERR! Error: shasum check failed for /root/tmp/npm-20092-p8pSVddz/1387524721245-0.7889713405165821/tmp.tgz
npm ERR! Expected: c35e98a04448a6b2f13c39b6faa6776c7196ed62
npm ERR! Actual:   9bf323a0ecae449d1431f0d0f7bf5856fa5dff4b
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:910:16
npm ERR!     at process._tickCallback (node.js:415:13)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 2.6.32-358.el6.x86_64
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "scws"
npm ERR! cwd /home/app/frully/test/scws
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.3.5
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/app/frully/test/scws/npm-debug.log
npm ERR! not ok code 0

发布npm时一直有问题,发布过去但是registry没有更新,我已经和npm反映了,可以暂时用git版本,我在生产时的package.json是这么写的:
"scws": "git://github.com/dotSlashLu/nodescws.git#v0.2.1"

force republish了一下,这里测试没问题了,明天我到公司再试试。