NPM 安装node.js模块

如果在安装某个模块时发生如下错误:

npm install winston -g 

npm ERR! error installing [email protected] Error: shasum check failed for C:\DOCUME

~1\myname\LOCALS~1\Temp\npm-1321027028150\1321027046659-0.772715161787346\tmp.

tgz

npm ERR! error installing [email protected] Expected: 7d0023eaeb154e8ee9fce75dcb923d

0ed1667774

npm ERR! error installing [email protected] Actual:   a3920de4ba03316b05b8c94163ea39

ba3db434cc

npm ERR! error installing [email protected]     at C:\tool\node\lib\node_modules\npm

\lib\utils\sha.js:25:20

 

Google发现网上很多的类似的错误,都是shasum check failed.

 

但是重新执行这条命令就会成功,而且安装其他模块时都不会出错。因为不能重现这个问题,就没有去调查这个问题。

 

你可能感兴趣的:(node.js)