npm use Taobao mirror
-
Temporary use - Recommended
npm --registry https://registry.npm.taobao.org install express
-
Permanent use - but not necessary
npm config set registry https://registry.npm.taobao.org
-
cnpm-- possible but not necessary
npm install -g cnpm --registry=https://registry.npm.taobao.org
Reproduced in: https: //my.oschina.net/suveng/blog/3058404