npm安装使用淘宝代理的方法(设置registry参数)

公司防火墙问题导致 npm下载失败,安装使用cnpm不知道什么原因抽筋,

还有一个简单的办法,就是npm安装模块时,设置代理:

npm install -g vue-cli --registry=http://registry.npm.taobao.org

原文地址:https://www.cnblogs.com/anybus/p/7730388.html