npm的默认安装镜像是:https://registry.npmjs.org/。下面我们来配置一下国内的镜像。

检测查看当前的镜像源:

npm config get registry

npm之设置国内镜像

npm配置国内镜像源:

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

npm之设置国内镜像

安装cnpm:

npm install -g cnpm --registry=https://registry.npm.taobao.org

相关文章:

  • 2022-12-23
  • 2021-12-20
  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
  • 2022-01-14
  • 2022-02-09
猜你喜欢
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
相关资源
相似解决方案