nodejs安装淘宝npm镜像【cnpm】

安装完nodejs后【自带npm】

如果npm无法使用或需要翻墙,可以先安装cnpm,然后使用cnpm install安装模块

安装全局cnpm

npm install -g cnpm --registry=https://registry.npm.taobao.org

安装模块就使用

cnpm install [模块名]

同步模块

cnpm sync connect
原文地址:https://www.cnblogs.com/wuhairui/p/6796523.html