Bower calls blocked by corporate proxy

前端 未结 16 1246
夕颜
夕颜 2020-11-30 20:00

I\'m trying to use Bower for a web app, but find myself hitting some sort of proxy issues:

D:\\>bower search jquery
bower retry         Request to https:/         


        
16条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-30 20:38

    The solution for me is this config .bowerrc

    {
      "directory": "vendor",
      "registry": "http://bower.herokuapp.com",
      "proxy": "http://:@proxy.host.br:8080",
      "https-proxy": "http://:@proxy.host.br:8080",
      "strict-ssl": false
    }
    

    Using the http protocol in https-proxy plus registry entry with http protocol.

    Remember to change 8080 port number to whatever is yours proxy server port.

提交回复
热议问题