I am trying to run npm as build tool of an angular application. Having to work behind a corporate firewall complicates things quite much…
After updating npm (currently 6.7.0) I found a way to set a no-proxy host with --noproxy like:
npm install --noproxy=internalnexushost --registry=http://internalnexushost/foo/bar/
This works fine, however - since having sass as dependency - I have to add also --sass-binary-site=… like:
npm install --noproxy=internalnexushost --registry=http://internalnexushost/foo/bar/ --sass-binary-site=internalartifactory
This fails because the host of sass-binary-site is not excluded from beeing proxied.
npm install --noproxy=internalnexushost,internalartifactory
npm install --noproxy=[internalnexushost internalartifactory]
however this did make the complete noproxy setup failing.
How to set more than one non-proxy host? What am I doing wrong?