Think before you speak, read before you think.

npm使用淘宝的registry

遇到过 forever 装不上的情况

/usr/bin/npm install forever -g

701 error Error: shasum check failed for /root/tmp/npm-5826-Ev6S_4GZ/1438247556786-0.7053809177596122/tmp.tgz
701 error Expected: 4353b88b7131797fb5520e39eba263df5863cba3
701 error Actual:   28322c7853c55e33081b19337d4e5359b8cceaae
701 error     at /usr/lib/node_modules/sha/index.js:38:8

换成淘宝的registry后正常。

npm config set registry http://registry.npm.taobao.org/

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *