1、淘宝镜像安装
npm config set registry https://registry.npm.taobao.org
2、配置后可通过下面方式来验证是否成功
npm config get registry
3.通过cnpm使用
npm install -g cnpm --registry=https://registry.npm.taobao.org
1、淘宝镜像安装
npm config set registry https://registry.npm.taobao.org
2、配置后可通过下面方式来验证是否成功
npm config get registry
npm install -g cnpm --registry=https://registry.npm.taobao.org
转载于:https://www.cnblogs.com/Ting-log/p/9151155.html