asdf-vm / asdf-nodejs

Node.js plugin for asdf version manager
https://github.com/asdf-vm/asdf
MIT License
908 stars 144 forks source link

feat: Node.js nightly (v22) install #389

Closed exoego closed 4 months ago

exoego commented 8 months ago

I would like to try Node.js nightly (v22), which experimentally supports WasmGC. I remember that asdf list-all nodejs showed nightly formerly, but it appears that nightly is no longer shown after https://github.com/asdf-vm/asdf-nodejs/pull/292 It appears that asdf-nodejs still "remember" nightly, but fails to install:

$ asdf install nodejs nightly
Trying to update node-build... ok
Downloading node-v22.0.0-nightly202404032241e8c5b3.tar.gz...
-> https://nodejs.org/download/nightly/v22.0.0-nightly202404032241e8c5b3/node-v22.0.0-nightly202404032241e8c5b3.tar.gz
Installing v22.0.0-nightly202404032241e8c5b3...

BUILD FAILED (OS X 14.4.1 using node-build 4.9.111-130-g59baffd8)

Inspect or clean up the working tree at /var/folders/qv/5dffmp1s3m34z71tyzb6b8f00000gn/T/node-build.20240403193448.41631.ElAySN
Results logged to /var/folders/qv/5dffmp1s3m34z71tyzb6b8f00000gn/T/node-build.20240403193448.41631.log

Last 10 log lines:
/var/folders/qv/5dffmp1s3m34z71tyzb6b8f00000gn/T/node-build.20240403193448.41631.ElAySN ~/IdeaProjects/node22-wasm
/var/folders/qv/5dffmp1s3m34z71tyzb6b8f00000gn/T/node-build.20240403193448.41631.ElAySN/v22.0.0-nightly202404032241e8c5b3 /var/folders/qv/5dffmp1s3m34z71tyzb6b8f00000gn/T/node-build.20240403193448.41631.ElAySN ~/IdeaProjects/node22-wasm
/Users/exoego/.asdf/plugins/nodejs/.node-build/bin/node-build: line 693: V22.0.0_CFLAGS: invalid variable name

It is great if asdf-nodejs can install nightly.

exoego commented 4 months ago

Closing as v22 is no longer nightly