Bower calls blocked by corporate proxy

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

    For Win 7.

    What worked for me , are below steps as suggested at this link - read #nanowizard answer.

    1. In .bowerrc file, remove any http_proxy / https_proxy settings that you might have done earlier. This is important. So final content of this file should look like :-

      {
        "directory": "app/bower_components" 
      }
      
    2. Set environment variables in your pc - http_proxy and https_proxy to your corporate firewall proxy. In case, your corporate proxy requires authentication and if your password contains special characters, convert it to hex form as suggested by this link. As in my case escaping of characters with '\' did not help. Also I had to restart my system.

    Note : http_proxy and https_proxy should contain same proxy address as shown below

    http_proxy = http://:@:
    https_proxy= http://:@:  ->Note no 's' in http://...
    

提交回复
热议问题