Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Global Bower .bowerrc file location to enable proxy

Since I have the same issue as in Bower calls blocked by corporate proxy I have created a 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 still get the following message in Visual Studio:

enter image description here

Where should the global config.bowerrc file which sets the proxy be located?

like image 800
Ewald Stieger Avatar asked Sep 19 '14 10:09

Ewald Stieger


People also ask

Where is .bowerrc file?

. bowerrc file located in user's home folder ( ~ )


1 Answers

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

  • Local .bowerrc located in the current working directory
  • All .bowerrc files upwards the directory tree
  • .bowerrc file located in user’s home folder (%USERPROFILE%)
  • bowerrc (without the dot) file located in %APPDATA%/bower/config

The config is obtained by merging multiple configurations by this order of importance. Local .bowerrc file has the highest precedence while the global one has the lowest (CLI arguments and environment variables has higher precedence than the bowerrc file).

like image 172
Dror Bereznitsky Avatar answered Oct 11 '22 15:10

Dror Bereznitsky