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.
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
}
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?
You need to set HTTP_PROXY and HTTPS_PROXY env var with your proxy settings in order to access git behind a proxy
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With