设置代理

npm config set proxy http://username:password@server:port
npm config set https-proxy http://username:password@server:port

 

删除代理

npm config delete proxy
npm config delete https-proxy

 

设置仓库

npm config set registry=http://registry.npmjs.org

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

npm install --production --registry https://registry.npm.taobao.org

npm install -g xxxxxxx --registry https://registry.npm.taobao.org

npm install xxxxxxx --registry https://registry.npm.taobao.org

 

相关文章:

  • 2021-09-24
  • 2021-11-13
  • 2021-11-13
  • 2021-11-20
  • 2022-02-15
  • 2022-12-23
猜你喜欢
  • 2021-11-20
  • 2022-12-23
  • 2021-08-10
相关资源
相似解决方案