The global location of the Bower.bowerrc file to enable the proxy server

Since I have the same problem as in Bower it causes corporate proxy blocking , I created the config.bowerrc file in AppData / Roaming / ... as shown below:

enter image description here

with the following in it - edited with my own settings:

{ "directory": "library", "registry": "http://bower.herokuapp.com", "proxy":"http://<USERNAME>:<PASSWORD>@<PROXY_IP>:<PROXY_PORT>/", "https-proxy":"http://<USERNAME>:<PASSWORD>@<PROXY_IP>:<PROXY_PORT>/" } 

However, this does not seem to work, as I am still receiving the following message in Visual Studio:

enter image description here

Where should the global config.bowerrc file that the proxy installs be located?

+7
visual-studio-2013 bower proxy
source share
1 answer

The bower configuration file name must be .bowerrc It can be located in one of the following elements:

  • Local .bowerrc located in the current working directory
  • All .bowerrc files up the directory tree
  • The .bowerrc file is located in the users home folder ( %USERPROFILE% )
  • bowerrc file (no dot) located in %APPDATA%/bower/config

A configuration is obtained by combining several configurations in this order of importance. The local .bowerrc file has the highest priority and the global .bowerrc (the CLI arguments and environment variables have higher priority than the bowerrc file).

+24
source share

All Articles