解决npm install安装慢的问题

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

原版结果为:
http://registry.npmjs.org

用set命令换成阿里的镜像就可以了
npm config set registry https://registry.npm.taobao.org

再执行命令
npm install

或者直接执行
npm install --registry=https://registry.npm.taobao.org

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

posted @ 2022-01-24 11:05  JuneCrazy  阅读(282)  评论(0)    收藏  举报