Node Package Manager via Squid

by Wolfram Saringer  (2011-09-20)
last change: 2011-09-20


In some configurations the Squid HTTP Proxy seems to deny NPM requests when using the HTTPS protocol. In this case the error message returned by npm will contin a phrase like this:

"Unsupported Request Method and Protocol"

Try to reconfigure npm to use HTTP instead with this command:

$ npm config set registryhttp://registry.npmjs.org/

The currently used configuration can be read by issuing

$ npm config get registry



all articles represent the sole opinion of their respective author. all content comes without any warranty for correctnes, despite due diligence.