Skip to content
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

[QUESTION] Is it possible to add an option for using IPv6 only? #226

Open
roland-reed opened this issue Dec 13, 2023 · 0 comments
Open

[QUESTION] Is it possible to add an option for using IPv6 only? #226

roland-reed opened this issue Dec 13, 2023 · 0 comments
Assignees

Comments

@roland-reed
Copy link

roland-reed commented Dec 13, 2023

These days I have encounter a problem which is related to IPv4 & IPv6, here is the problem:

  • Commands like npm publish or npm view will fail with error connection timeout (connecting to IP of IPv4 of registry.npmjs.org) after default timeout (5 mins)
  • DNS resolving works normally, returns IPv4 IPs and IPv6 IPs
  • ping <IPv4 IP> works
  • curl -4 https://registry.npmjs.org always timed out
  • curl -6 https://registry.npmjs.org works

I understand that this is a network issue, not a bug, but I wonder if there is a possibility to add an option like ipv6Only to make npm-registry-fetch and npm only use IPv6 in certain conditions.

If it sounds reasonable, I can make a PR.

Thanks.

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

No branches or pull requests

2 participants