Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bower not working in Visual Studio 2015 Preview

I am building a web application in Visual Studio 2015. I am behind corporate proxy. Installing packages via bower is not working.

I tried the following workarounds.

  1. Created a .bowerrc file in the solution with the following settings.

    {
      "proxy": "http://xxx.xxx.xxx.xxx:Port",
      "https-proxy": "http://xxx.xxx.xxx.xxx:Port",
      "strict-ssl": false
    }
    
  2. Installed Git. Changed the git configuration to use https:// instead of git://

When I run the following command
bower install
I get the following error.

bower ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/jzaefferer/jquery-validation.git", exit code of #128

Additional error details: fatal: unable to access 'https://github.com/jzaefferer/jquery-validation.git/': Failed connect to github.com:443; No error

Any idea what went wrong?

like image 490
AnandhaSundari M Avatar asked Feb 27 '15 07:02

AnandhaSundari M


1 Answers

You need to set HTTP_PROXY and HTTPS_PROXY env var with your proxy settings in order to access git behind a proxy

like image 68
agua from mars Avatar answered Nov 01 '22 02:11

agua from mars