Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

Use npm's configured options for proxy #54

Closed
explunit opened this issue May 2, 2013 · 1 comment
Closed

Use npm's configured options for proxy #54

explunit opened this issue May 2, 2013 · 1 comment

Comments

@explunit
Copy link

explunit commented May 2, 2013

install.js looks only for http_proxy environment variable and ignores any values set in the npm configuration.

It should follow the npm standard of using the configured values and then falling back to environment variables as a default.

For example, if I do this:

npm config set proxy "http://my-proxy.mycompany.com:80"

It should be able to do the install even if the http_proxy environment variable is not set.

@dpup
Copy link
Contributor

dpup commented May 2, 2013

Good call, didn't know about this feature.

-- Dan

On Thu, May 2, 2013 at 10:34 AM, explunit notifications@github.com wrote:

install.js looks only for http_proxy environment variable and ignores any
values set in the npm configuration.

It should follow the npm standard https://npmjs.org/doc/config.html of using
the configured values https://github.com/isaacs/npmconf and then
falling back to environment variables as a default.

For example, if I do this:

npm config set proxy "http://my-proxy.mycompany.com:80"

It should be able to do the install even if the http_proxy environment
variable is not set.


Reply to this email directly or view it on GitHubhttps://github.com//issues/54
.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants