解决npm install安装慢的问题

https://www.cnblogs.com/nicest/p/9577310.html

 

国外镜像会很慢 
可用 get命令查看registry

1
npm congfig get registry

原版结果为

1
http://registry.npmjs.org

用set命令换成阿里的镜像就可以了

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

再执行命令

1
npm install

或者直接执行

1
npm install --registry=https://registry.npm.taobao.org
posted @ 2020-05-07 16:59  PanPan003  阅读(862)  评论(0编辑  收藏  举报