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

IPv6 support #99

Open
WietseWind opened this issue Oct 8, 2023 · 2 comments
Open

IPv6 support #99

WietseWind opened this issue Oct 8, 2023 · 2 comments

Comments

@WietseWind
Copy link

WietseWind commented Oct 8, 2023

Hi!

First of all: thank you for this project & your contributions to open source (!)

Then the reason for this issue:
Currently the hostname unofficial-builds.nodejs.org hostname doens't have IPv6 reachability. This is tricky at IPv6 only networks;

12.65 npm ERR! gyp ERR! configure error 
12.65 npm ERR! gyp ERR! stack FetchError: request to https://unofficial-builds.nodejs.org/download/release/v20.8.0/node-v20.8.0-headers.tar.gz failed, reason: connect ENETUNREACH 45.55.98.129:443
12.65 npm ERR! gyp ERR! stack     at ClientRequest.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14)

nslookup:

 ✘ wrw@MalusDomestica  ~/Desktop/Xahau/xpop-collector-backend   main  nslookup -q=a unofficial-builds.nodejs.org                                                 
Server:		8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
Name:	unofficial-builds.nodejs.org
Address: 45.55.98.129

 wrw@MalusDomestica  ~/Desktop/Xahau/xpop-collector-backend   main  nslookup -q=aaaa unofficial-builds.nodejs.org
Server:		8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
*** Can't find unofficial-builds.nodejs.org: No answer

Adding IPv6 support would be greatly appreciated ;)

Workaround

For now I managed to continue by setting up a reverse proxy, which will be used if you specify the --dist-url when running npm install. Not ideal but it may work for others on IPv6 only networks:

E.g. if you want to install the ed25519 package:

npm --dist-url=https://nodejs-builds.xahau.tech/download/release install ed25519
@nschonni
Copy link
Member

nschonni commented Oct 9, 2023

Why is your gyp trying to install from unofficial builds? The releases here are only for some of the architectures that aren't officially supported, but the headers should be the same as the official release ones.

@WietseWind
Copy link
Author

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