-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Network issues with node@17.2.0
#41145
Comments
I see that registry.npmjs.com is advertising IPv6 addresses in DNS. I'm guessing that they are only serving over IPv4 and the problem you are seeing is due to a breaking change in Node.js 17.0.0's @nodejs/npm If I'm right about this, the thing to do would be to either enable the registry to serve over IPv6 or else do not advertise the DNS records over IPv6. Adding @aduh95 @richardlau for additional comments/context. I'll also post this over in npm/cli#4163. (This issue can probably be closed.) |
Ref: nodejs/build#2822 |
AFAICT
It's entirely possible though that there is something local that is preventing IPv6 addresses being reachable. If you want the old default behaviour, where Node.js reordered addresses so it would prefer IPv4 addresses (starting with Node.js 17 the default is whatever order the operating system returns the IP adresses in), run Node.js with |
If it helps, I'm over CGNAT. I have private IPv6 but IPv4 is shared over the entire ISP. But the future will be only IPv6 🤔 |
Impossible, I already hosted IPv6-only websites with no-ip. Now I'm in a mobile internet, but soon I'll show you the tests 👍 |
@richardlau I noticed your npm registry's IPv6 are different from mine. So it looks like Brazil's DNS record are messed up (what a shame). |
@EduApps-CDG Sorry, I have no idea -- have you tried the |
|
Based on npm/cli#4163, it seems like this is believed to be an issue with the npm registry, so I'm going to optimistically close this. However, if it turns out I'm wrong, or if you'd just prefer this stay open until the issue is resolved even if it's not believed to be in Node.js, please comment or re-open the issue (if the GitHub interface provides you with a |
@EduApps-CDG
(as I mentioned previously in #41145 (comment)) or
|
Yeah, it's working. But that means I'll have to use these flags everytime? |
Yes, at least until whatever is blocking you from accessing the npm registry via IPv6 is resolved. |
Okay, thanks for the help! |
Just an update: |
For someone searching, Starlink (at least in Brazil) is causing this issue too. |
Version
v17.2.0
Platform
Linux EduApps 5.11.0-41-generic #45-Ubuntu SMP Fri Nov 5 11:37:01 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
node@17.2.0
installed, try executing:node@16.13.1
installed, execute:How often does it reproduce? Is there a required condition?
I dont know.
What is the expected behavior?
The expected behavior is the same behavior from
node@16.13.1
.What do you see instead?
npm won't ping
registry.npmjs.org
. It also affectsnpm
installs andyarn
installs.Additional information
Additional information in npm/cli#4163
The text was updated successfully, but these errors were encountered: