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“: “http://proxy.laurenthinoul.com:1234″.

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!

Leave a Reply

%d bloggers like this: