IPv6 support
WietseWind opened this issue · comments
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
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.
Package ed25519
on alpine linux (Docker image node:20-alpine
).