Bower calls blocked by corporate proxy

前端 未结 16 1263
夕颜
夕颜 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:43

    For info, in your .bowerrc file you can add a no-proxy attribute. I don't know since when it is supported but it works on bower 1.7.4 and it solve the issue of bower behind a corporate proxy with an internal repository

    .bowerrc :

    {
      "directory": "bower_components", 
      "proxy": "http://yourProxy:yourPort",
      "https-proxy":"http://yourProxy:yourPort",
      "no-proxy":"myserver.mydomain.com"
    }
    

    Regards

提交回复
热议问题