无法从公司代理服务器使用bower,怎么修复?

时间:2014-05-08 10:32:25

标签: node.js proxy bower bower-install

我正在尝试使用我的办公室代理服务器安装凉亭。我收到了错误。然后我尝试安装在我的C'驾驶。它已安装但我获得了无数304状态。

后来我尝试使用bower搜索骨干网,这次我遇到了这样的问题:如何解决这个问题以及我的网络代理或管理员权限等问题是什么?

这是我得到的错误:

C:\Bower>bower search backbone
bower retry         Request to https://bower.herokuapp.com/packages/search/backb
one failed with ETIMEDOUT, retrying in 1.1s
bower retry         Request to https://bower.herokuapp.com/packages/search/backb
one failed with ETIMEDOUT, retrying in 2.6s
bower retry         Request to https://bower.herokuapp.com/packages/search/backb
one failed with ETIMEDOUT, retrying in 5.3s
bower retry         Request to https://bower.herokuapp.com/packages/search/backb
one failed with ETIMEDOUT, retrying in 8.4s
bower retry         Request to https://bower.herokuapp.com/packages/search/backb
one failed with ETIMEDOUT, retrying in 27.0s
bower ETIMEDOUT     Request to https://bower.herokuapp.com/packages/search/backb
one failed: connect ETIMEDOUT

如何解决这个问题?任何人帮助我

1 个答案:

答案 0 :(得分:1)

使用此标题在您的主目录中创建.bowerrc文件:

{
  "directory": "library",
  "registry": "http://bower.herokuapp.com",
  "proxy":"<YOUR_PROXY>",
  "https-proxy":"<YOUR_HTTPS_PROXY>"
}