// 临时使用
npm --registry https://registry.npm.taobao.org install <依赖的库>

// 持久使用
npm config set registry https://registry.npm.taobao.org
// 配置后可通过下面方式来验证是否成功
npm config get registry 或 npm info express

 // 通过cnpm使用
npm install -g cnpm --registry=https://registry.npm.taobao.org

  

相关文章:

  • 2022-12-23
  • 2021-11-20
  • 2021-11-22
  • 2021-04-27
  • 2021-08-27
  • 2022-03-04
  • 2022-02-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2021-10-18
  • 2022-12-23
相关资源
相似解决方案