$ npm config set proxy http://localhost:3128
$ npm config set https-proxy http://localhost:3128
This config is great for SquidMan app.
$ npm config delete http-proxy
$ npm config delete https-proxy
note: nodejs itself uses the command line proxy settings.
Contrary to what @timbophillips said, Node.js does not use HTTP_PROXY environment variables. See this discussion nodejs/node#8381.
To set a global Node.js proxy use https://github.com/gajus/global-agent.
Why it is npm config set proxy http://localhost:3128 for setting the property, but the unsetting of this property is documented as npm config delete http-proxy ? Is this a typo ?
Does this config even apply to node or just to npm?
@ghosty-be: +1: ;)