Install Node.JS and npm behind a firewall / company proxy - Galen Framework
Problem: Unable to install npm behind the proxy
Solution: Similar to what we did when we installed git http://go-gaga-over-testing.blogspot.com.au/2015/04/setup-github-within-companys-firewall.html behind a company's firewall we shall edit the config settings for Node
Update: Try changing to npm config set registry "https://registry.npmjs.org/"
- The best way to install npm is to install node usingnpm is installed as part of node.
- The problem occurs when you clone the Node repository from Github
- npm uses a configuration file and it can be added to via the command line npm config set ...
- To get packages behind a proxy
- npm config set strict-ssl false
- npm config set registry "http://registry.npmjs.org/"
- npm config set proxy http://"username:password"@proxy:8080
- npm config set https-proxy http://proxy-server-address:8080
You can skip the username password and just hardcode the proxy and registry URL so that npm wouldn’t have to look for it, so in the end, I had an .npmrc that looked like this:
proxy=http://proxy details:8080 https_proxy=http://proxy details:8080 strict-ssl=false ca=null registry=http://registry.npmjs.org/
And If you are installing the Galen Framework on Windows just like me then use the manual installer: