Description
Node.js Version
v22.12.0
NPM Version
10.9.0
Operating System
Microsoft Windows 10 Pro
Subsystem
Other
Description
After upgrading to node version 22, it seems the proxy configuration is not working anymore.
We are behind a corporate proxy, so we use local proxy servers to install node packages; we tried with fiddler, px and others, but the result is the same.
This is our configuration:
proxy=http://localhost:3128
https-proxy=http://localhost:3128
strict-ssl=false
registry=[INTERNAL_REGISTRY]
We tried with the previous LTS (node 20) and everything worked as expected; the same goes for node 21.
When we upgraded to node 22, when we tried to install packages we got an ECONNREFUSED issue. We tried also with node 23, but we got the same issue.
We also checked the documentation and internal changelogs, but it seems to be no reference to changes that may have affected the proxy configuration.
Are we missing some configuration or similar?
Thanks.
Minimal Reproduction
- Install any local proxy server (for example px https://github.com/genotrance/px)
- configure your .npmrc as per the description
- install any package
You should get an ECONNREFUSED issue
Output
npm http fetch GET [INTERNAL_REGISTRY] attempt 1 failed with ECONNREFUSED
Before You Submit
- I have looked for issues that already exist before submitting this
- My issue follows the guidelines in the README file, and follows the 'How to ask a good question' guide at https://stackoverflow.com/help/how-to-ask