(一)npm与cnpm切换使用

1.设置使用淘宝cnpm

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

2.查看是否配置成功,成功后即可直接使用cnpm命令

npm config get registry

3.还原npm仓库

npm config set registry https://registry.npmjs.org
原文地址:https://www.cnblogs.com/chendongbky/p/11125648.html