1.将npm设置为淘宝镜像

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

2.通过cnpm使用淘宝镜像

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

3. 查看cnpm镜像设置

npm config get registry 

4.查看cnpm镜像设置

cnpm config get registry

 

相关文章:

  • 2022-12-23
  • 2022-02-06
  • 2022-12-23
  • 2021-06-04
  • 2022-02-28
  • 2022-12-23
  • 2022-03-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案