bower 出现 retry Request to https://registry.bower.io/packages/xxx failed with ECONNRESET

7 篇文章 0 订阅

引用github issue上国外网友的回答:

If it's any help, I'm facing the same problem in the same conditions (cntlm to bypass corporate proxy). I used bower-canary as @satazor suggested. Didn't work until I had the following in my .bowerrc

如果有任何帮助,我在相同的条件下面临同样的问题(cntlm 绕过公司代理)。我按照@satazor 的建议使用了 bower-canary。直到我的 .bowerrc 中有以下内容才起作用

{
    "proxy" : "http://localhost:3131",
    "https-proxy" : "http://localhost:3131",
    "strict-ssl": false
}

Knowing that 3131 is my proxy port. Don't forget to execute git config --global url."https://".insteadOf git:// when behind a corporate proxy which blocks git protocol if needed

知道 3131 是我的代理端口。不要忘记在公司代理后面执行 git config --global url."https://".insteadOf git:// 在需要时阻止 git 协议

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值