41.Node.js使用cnpm

转自:http://www.runoob.com/nodejs/nodejs-tutorial.html

npm是Node.js中维护第三方库、模块的工具,但是国外的速度很悲剧,这里有一个中国的源cnpm。

http://cnpmjs.org/

需要在命令行中运行

npm install -g cnpm --registry=http://r.cnpmjs.org

然后所有使用npm的地方直接使用cnpm来替代

第三方的模块的安装目录

C:Users当前用户AppDataRoaming pm

原文地址:https://www.cnblogs.com/sharpest/p/8066755.html