Posts

Showing posts with the label npm

Install Node.JS and npm behind a firewall / company proxy - Galen Framework

Image
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 The best way to install npm is to install node using  the node.js installer .  npm 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  Update:  Try changing to npm config set registry "http s ://registry.npmjs.org/" Update: You can skip the username password and just ha...