首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >通过代理

通过代理
EN

Stack Overflow用户
提问于 2014-02-17 02:50:04
回答 1查看 5.3K关注 0票数 6

我正试图通过公司代理使用bower。我读了here,我应该在我的.bowerrc文件中添加一些东西。我做了,现在没有得到一个没有发现的错误,我得到了ECONNRESET。

国家预防机制运作良好。

有什么建议吗?

错误:

最后一个:

代码语言:javascript
复制
Request to https://bower.herokuapp.com/packages/bootstrap failed: tunneling socket could
not be established, cause=Parse Error

还有一堆这些:

代码语言:javascript
复制
bower retry         Request to https://bower.herokuapp.com/packages/jquery faile
d with ECONNRESET, retrying in 12.4s
bower retry         Request to https://bower.herokuapp.com/packages/angular-mock
s failed with ECONNRESET, retrying in 9.1s
bower retry         Request to https://bower.herokuapp.com/packages/angular-scen
ario failed with ECONNRESET, retrying in 15.0s
bower retry         Request to https://bower.herokuapp.com/packages/angular-rout
e failed with ECONNRESET, retrying in 15.7s
bower retry         Request to https://bower.herokuapp.com/packages/angular-sani
tize failed with ECONNRESET, retrying in 11.6s
bower retry         Request to https://bower.herokuapp.com/packages/angular-cook
ies failed with ECONNRESET, retrying in 9.1s
bower retry         Request to https://bower.herokuapp.com/packages/angular-reso
urce failed with ECONNRESET, retrying in 25.6s
bower retry         Request to https://bower.herokuapp.com/packages/angular fail
ed with ECONNRESET, retrying in 26.3s
bower retry         Request to https://bower.herokuapp.com/packages/angular-mock
s failed with ECONNRESET, retrying in 24.8s
bower retry         Request to https://bower.herokuapp.com/packages/json3 failed
 with ECONNRESET, retrying in 20.1s
bower retry         Request to https://bower.herokuapp.com/packages/bootstrap fa
iled with ECONNRESET, retrying in 17.2s
bower retry         Request to https://bower.herokuapp.com/packages/angular-cook
ies failed with ECONNRESET, retrying in 16.8s
bower retry         Request to https://bower.herokuapp.com/packages/jquery faile
d with ECONNRESET, retrying in 18.0s
bower retry         Request to https://bower.herokuapp.com/packages/angular-sani
tize failed with ECONNRESET, retrying in 22.6s
bower retry         Request to https://bower.herokuapp.com/packages/es5-shim fai
led with ECONNRESET, retrying in 26.3s
bower retry         Request to https://bower.herokuapp.com/packages/angular-scen
ario failed with ECONNRESET, retrying in 22.7s
bower retry         Request to https://bower.herokuapp.com/packages/angular-rout
e failed with ECONNRESET, retrying in 20.9s
bower ECONNRESET   
EN

回答 1

Stack Overflow用户

发布于 2014-09-05 06:50:10

你可以在下面试一试:

代码语言:javascript
复制
npm --proxy username:password@proxy:8080[/someproxyjs.pac] install -g bower

注意:应该从http开始,并替换您的帐户用户名:密码。一些代理,可能是自动脚本,请填写完全替换[/someproxyjs.pac]

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21819891

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档