zkat / make-fetch-happen

Get in loser, we're making requests!
Other
384 stars 27 forks source link

Broken No Proxy #59

Closed RuneKR closed 6 years ago

RuneKR commented 6 years ago

I have an internal feed for my own private packages that are scoped with @myscope. Every other packages such as the dependencies of @myscope/* should be loaded normally from the public npm registry.

When i try to install a package like @myscope/cool-package npm still tries to use the proxy and ignores .npmrc no_proxy.

.npmrc content

@myscope:registry=https://mydomain/npm/registry/
proxy=http://user:pass@proxysslbypass.mydomain.com
https-proxy=http://user:pass@proxysslbypass.mydomain.com
no_proxy="webother*,10*,otherone*,othernew*,newone*,otherdomain.com*,*.mydomain.com.*"

node: 6.9.4 npm: 6.1.0

RuneKR commented 6 years ago

So i found out my no_proxy variable should be named no-proxy in the .npmrc. and wildcards (*) are not supported