benek benek - 1 year ago 121
Node.js Question

bower behind a proxy

bower install
behind a proxy fails in timeout with the following settings (some set are useless...) :

git config --global http.proxy
git config --global https.proxy

export http_proxy=
export https_proxy=

npm config set proxy
npm config set https-proxy

npm config set registry

I have also tried an install/uninstall of bower and a
bower clean cache

Answer Source

Edit your .bowerrc file and add the wanted proxy configuration:


If working behind an authenticated proxy, user and password should be included like this:


Usually, the .bowerrc is next to the bower.json. And if there is no .bowerrc file near the bower.json file, you can create one by yourself.