npm源

使用cnpm

alias cnpm="npm --registry=https://registry.npm.taobao.org
//或者
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install 

修改源地址

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

yarn源

//查看默认源地址
 yarn config get registry 
//设置源地址为淘宝
yarn config set registry 'http://registry.npm.taobao.org'

[Skill]加速npm与yarn还原

相关文章:

  • 2021-09-24
  • 2022-12-23
  • 2021-11-22
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
猜你喜欢
  • 2021-10-20
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2021-12-08
  • 2021-05-24
  • 2021-11-03
相关资源
相似解决方案