首页 > 其他 > 详细

git npm proxy代理

时间:2021-06-05 17:48:41      阅读:15      评论:0      收藏:0      [点我收藏+]

npm代理

npm设置代理

npm?config?set?proxy??
npm?config?set?https-proxy?http://server:port

npm配置文件~.npmrc

技术分享图片

git

设置代理:


git?config?--global?http.proxy?proxy-url:proxy-port

?more .gitconfig

[https]

[http "https://github.com"]

proxy = socks5://127.0.0.1:10808

[https "https://github.com"]

proxy = socks5://127.0.0.1:10808

npm 跟git proxy要使用不同的端口,尤其是使用git 访问github.com拉取依赖网络不通的时候,通过区别与npm? proxy的端口

亲测试验有效

git npm proxy代理

原文:https://blog.51cto.com/lookingdream/2869879

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!