首页 > 其他 > 详细

修改镜像源加速npm

时间:2020-03-17 12:19:34      阅读:58      评论:0      收藏:0      [点我收藏+]

1.查看当前使用的镜像源

npm config get registry

2.修改镜像源

临时修改

npm install 软件名 --registry https://registry.npm.taobao.org/

全局修改

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

3.使用第三方软件修改切换镜像源 nrm

安装nrm

npm install -g nrm

查看当前所有可用镜像源

nrm ls

使用淘宝镜像源

nrm use taobao

测试访问速度

nrm test taobao

from: https://learnku.com/articles/15975/npm-accelerate-and-modify-mirror-source-in-china

修改镜像源加速npm

原文:https://www.cnblogs.com/hankleo/p/12509627.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!