asdf-nodejs icon indicating copy to clipboard operation
asdf-nodejs copied to clipboard

Cannot install node 21.7.x

Open marques-l-GILD opened this issue 1 year ago • 2 comments

Looks like the node-build defs are outdated:

$ asdf install nodejs 21.7.1
Trying to update node-build... ok
node-build: definition not found: 21.7.1

marques-l-GILD avatar Mar 14 '24 05:03 marques-l-GILD

There's an issue upstream that is waiting for this PR apparently: https://github.com/nodenv/node-build/pull/853

bai avatar Mar 15 '24 02:03 bai

The upstream repo seems to have an outdated secret that prevents proper merging of the build. I implemented a workaround by cloning and rebuild the node build.

rm -rf ~/.asdf/plugins/nodejs/.node-build. # remove the local node-build
export ASDF_NODEJS_NODEBUILD_REPOSITORY=https://github.com/stannum-l/node-build.git
asdf list all nodejs

This is just a workaround; please use the official node-build repo whenever the issue is resolved.

EDIT: It should be fixed soon. https://github.com/nodenv/node-build/issues/852#issuecomment-1998728073

stannum-l avatar Mar 15 '24 18:03 stannum-l