Skip to content

Instantly share code, notes, and snippets.

@johnrc
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnrc/12fcb5968e99a1575f8f to your computer and use it in GitHub Desktop.
Save johnrc/12fcb5968e99a1575f8f to your computer and use it in GitHub Desktop.
Setting up bower behind a proxy on Windows

Steps for installing and using bower behind a proxy:

Install git, node and add C:\Program Files (x86)\Git\bin to %path% Then run the following:

set http_proxy=http://<username>:<password>@<host>:<port>/
set https_proxy=http://<username>:<password>@<host>:<port>/
npm install -g bower

Or you can add the following to your .bowerrc file in %userprofile% or in your project

{ 
"proxy": "http://<username>:<password>@<host>:<port>/",
"https-proxy": "http://<username>:<password>@<host>:<port>/"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment