码迷,mamicode.com
首页 > 其他好文 > 详细

npm和yarn的源、代理设置

时间:2019-12-18 23:32:51      阅读:227      评论:0      收藏:0      [点我收藏+]

标签:body   config   lin   代理设置   https   te pro   href   delete   line   

npm和yarn转换淘宝源和官方源

1
2
3
4
5
npm config set registry http://registry.npm.taobao.org/
npm config set registry https://registry.npmjs.org/

yarn config set registry http://registry.npm.taobao.org/
yarn config set registry https://registry.npmjs.org/

npm 设置代理

1
2
npm config set proxy http://127.0.0.1:8080
npm config set https-proxy http://127.0.0.1:8080

npm 删除代理

1
2
npm config delete proxy
npm config delete https-proxy

yarn 设置代理

1
2
yarn config set proxy http://127.0.0.1:8080
yarn config set https-proxy http://127.0.0.1:8080

yarn 删除代理

1
2
yarn config delete proxy
yarn config delete https-proxy

npm和yarn的源、代理设置

标签:body   config   lin   代理设置   https   te pro   href   delete   line   

原文地址:https://www.cnblogs.com/icefish527/p/12064101.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!