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

相关文章:

  • 2021-12-28
  • 2022-12-23
  • 2021-07-27
  • 2022-12-23
  • 2021-06-27
  • 2021-11-29
  • 2021-05-24
  • 2021-08-23
猜你喜欢
  • 2022-02-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案