npm镜像源

1、国内用户,建议将npm的注册表源设置为国内的镜像,可以大幅提升安装速度,先查看本机地址
npm config get registry
2、国内优秀npm镜像推荐及使用
淘宝npm镜像
 ·搜索地址:http://npm.taobao.org/
 ·registry地址:http://registry.npm.taobao.org/
< 大专栏  npm镜像源code class="language-bash">cnpmjs镜像
 ·搜索地址:http://cnpmjs.org/
 ·registry地址:http://r.cnpmjs.org/
3、永久配置
npm config set registry https://registry.npm.taobao.org
原文地址:https://www.cnblogs.com/lijianming180/p/12366550.html