通过代理进行凉亭

时间:2014-02-17 02:50:04

标签: npm bower

我正在尝试通过公司代理使用凉亭。我读了here我应该在我的.bowerrc文件中添加一些内容。我做了,而不是得到一个未找到的错误,我得到了ECONNRESET。

npm工作正常。

有什么建议吗?

错误:

最后一个:

Request to https://bower.herokuapp.com/packages/bootstrap failed: tunneling socket could
not be established, cause=Parse Error

以及其中一堆:

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   

1 个答案:

答案 0 :(得分:1)

您可以尝试以下内容:

npm --proxy username:password@proxy:8080[/someproxyjs.pac] install -g bower

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