Laurent Hinoul

“Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.” - John F. Woods

How to enable bower to work behind a proxy

Hi there, in this post I will show you how to configure bower so it can download files behind a proxy.

In your project root folder, create a file ‘.bowerrc‘. In that file, add the following lines:

Change the <url> to the proxy url and the <port> to the proxy port. for example a proxy can look like:

NOTE! Make sure that your url start with http in the https-proxy section! Example: “https-proxy“: “″.

When you need to give your credentials to a proxy server. User the following code in your .bowerrc file:

Change the <username> to your username and the <password> to your password. An example:

Hopefully this post is useful to you! If it does, like ‘n’ share 😀 happy coding!

1 comment for “How to enable bower to work behind a proxy

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: