码迷,mamicode.com
首页 > 其他好文 > 详细

解决npm install安装慢的问题

时间:2020-07-10 13:43:13      阅读:83      评论:0      收藏:0      [点我收藏+]

标签:--   nbsp   tao   code   org   config   http   解决   镜像   

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

npm congfig 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

 

解决npm install安装慢的问题

标签:--   nbsp   tao   code   org   config   http   解决   镜像   

原文地址:https://www.cnblogs.com/windok/p/13278504.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!