【问题标题】:Not able to use bower from corporate proxy server, how fix?无法使用公司代理服务器的凉亭,如何解决?
【发布时间】:2014-05-08 10:32:25
【问题描述】:

我正在尝试使用我的办公室代理服务器安装凉亭。我有错误。然后我尝试安装在我的“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

如何解决这个问题?谁来帮帮我

【问题讨论】:

    标签: node.js proxy bower bower-install


    【解决方案1】:

    在您的主目录中创建 .bowerrc 文件,并带有以下标题:

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

    【讨论】:

      猜你喜欢
      • 2016-06-08
      • 1970-01-01
      • 1970-01-01
      • 2014-03-09
      • 2020-02-13
      • 1970-01-01
      • 2014-08-17
      • 2013-11-20
      • 2023-03-18
      相关资源
      最近更新 更多