npm 下载慢问题解決方案

 

1. npm config set registry https://registry.npm.taobao.org​  (设置默认使用cnpm)

   npm config get registry​   (验证是否使用cnpm);

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

作者:MF 孟飞 ; 如果文中有什么错误,欢迎指正,谢谢!
原文地址:https://www.cnblogs.com/mileSs/p/8390816.html