I am trying to install bower
npm install -g bower
but am getting an authentication error from our proxy
... npm http 407 http://registry.npmjs.org/bower ... Error Code: 407 Proxy Authentication Required. ...
I am trying to get npm working behind a corprate proxy. I think our proxy is a little weird because the only way I was able to get maven downloading packages was to add wagon-http-lightweight.jar as a maven extension.
http://maven.apache.org/wagon/wagon-providers/wagon-http-lightweight/
I have tried all the regular things as described here: Is there a way to make npm install (the command) to work behind proxy?
(I don't need to supply authentication details in my maven proxy settings).
npm config set registry http://registry.npmjs.org/ npm config set proxy http://myusername:[email protected]:8080 npm config set https-proxy http://myusername:[email protected]:8080 npm config set strict-ssl false
What else can I try?
To check if npm works with your settings you can use npm ping command from the command line. If it returns {} everything should be fine.
Central registry: an npm proxy acts as a central registry for all your required package versions.
Can try this....working for me.
http://registry.npmjs.org
Now go back to command prompt and try npm install.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With