【问题标题】:Bower behind a proxy, still does not work after settinmg a proxy代理后面的Bower,设置代理后仍然不起作用
【发布时间】:2014-04-08 13:02:48
【问题描述】:

我想在代理后面使用 yeoman,但到目前为止我失败了。我使用环境变量设置代理。我得到以下 ENOTFOUND。

C:\test>bower search jquery
bower ENOTFOUND     Request to https://bower.herokuapp.com/packages/search/jquery   failed: getaddrinfo ENOTFOUND

我尝试使用我的代理设置通过浏览器访问https://bower.herokuapp.com/packages/search/jquery。我之前设置为试用:

git config --global url.https://.insteadOf git://

但是当我设置时似乎

git config --global --unset url."https://".insteadOf

如果 bower 使用 git 或 https,它没有任何效果。

我在win7 64bit上运行。

C:\test>凉亭-版本 1.3.1

请帮助某人。

干杯 亚历克斯

【问题讨论】:

    标签: git proxy cygwin yeoman bower


    【解决方案1】:

    你试过http_proxy='proxyserver' https_proxy='proxyserver' bower install吗? (proxyserver 是您的代理) - 或设置环境变量然后调用 bower?

    this other thread

    【讨论】:

    • 嗨,Mangled,

      谢谢,这似乎是代理问题,但有几个问题。一个是我将我的 https 代理发送到 https.proxy .... 而不是 http.proxy。

    • 这是一个救命稻草!!
    猜你喜欢
    • 2016-01-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-27
    • 1970-01-01
    • 1970-01-01
    • 2011-07-19
    相关资源
    最近更新 更多