isaacs/npm — Issue #1850: NPM requires http-proxy,https-proxy,proxy set in ~/.npmrc and doesn't fall back to local HTTP proxy settings
Author: ygreen
Created: 2011-12-07 23:44:59+00:00
State: open

Currently, NPM requires http-proxy,https-proxy,proxy set in ~/.npmrc and doesn't fall back to system HTTP proxy settings.

If you have already set the system environment settings for http_proxy and https_proxy, NPM operations will fail since NPM seems to rely on internal setting exclusively for its configuration. If you are on a laptop like myself and move around between various networks, this can get very annoying, and is inconsistent with the behavior of pretty much every other command line application or otherwise, that in the absence of an an application level config will fall back to the system configuration for these same values. Ideally NPM should do this as well.