-
Notifications
You must be signed in to change notification settings - Fork 3k
Support for noProxy configuration #19157
Conversation
+1 👍 |
|
No idea where I got that from, maybe it was used in an old |
@iarna Tested again and it works. |
Any feedback on this @iarna ? |
Is anybody going to look at this at some point? I'd prefer not to have to switch to |
I'm still waiting for this pretty important feature, but there seems to be
no progress or feedback yet.
|
I just test this PR in my environment where we use a private repo for our private dependencies. |
+1 from me. I need NPM to work with an external proxy and a local registry and we can't use the environment variables because that breaks git (which needs to talk to a local git server) and other things. |
Eagerly awaiting this as well |
@sebinsua as far a I know Yarn does not support this? But maybe I should create a PR for them as well. |
@Saturate They only support the |
@iarna did you have a chance to review this? |
@sebinsua thanks, I'll take a look at it soon, if this goes no further as it would help me with a lot of the big corporate environments where they lock most things down, and everything has to be proxied. |
+1 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do it 😎
Thanks for the patch! I added this a whiiiile back to make-fetch-happen
/pacote
, but obviously never got around to integrating it with npm itself. Thanks for your patience while we managed to get around to going through all these PRs!
For the rest of y'all: npm has supported the environment variable |
This commit adds support for the noProxy configuration. All whats really needed is passing the option to the `pacote` package, this will pass it to `make-fetch-happen` and finally to the `request` package where this is implemented. Fixes: #18350 Fixes: #7168 PR-URL: #19157 Credit: @Saturate Reviewed-By: @zkat
This minor commit adds support for the noProxy configuration.
All whats really needed is passing the option to the
pacote
package,this will pass it to
make-fetch-happen
.pacote: https://github.com/zkat/pacote/blob/latest/lib/util/opt-check.js#L26
make-fetch-happen: https://github.com/zkat/make-fetch-happen#opts-no-proxy
Fixes #18350, #7168