nodenv / node-build

Install NodeJS versions
MIT License
268 stars 80 forks source link

Listing locally installed versions as documented with `nodenv build -L` does not work #854

Closed martinblostein closed 3 months ago

martinblostein commented 6 months ago

Following the instructions here:

# list latest stable versions:
$ nodenv install -l

# list all local versions:
$ nodenv install -L

# install a Node version:
$ nodenv install 16.13.2

The first and last commands work as described, but the middle one does not seem to be recognized. nodenv versions seems to be the correct command for this, but I am not sure if that should be substituted in or if nodenv install is supposed to have such a command.

jasonkarns commented 5 months ago

Acknowledged! This is a feature that was introduced upstream https://github.com/rbenv/ruby-build/pull/1402 and so the readme got the updated docs when we pulled in upstream changes. However, ruby's definition of "stable" differs from node's so I'm not surprised this functionality doesn't work yet with node-build.

As the install subcommand is a plugin provided by node-build, I'm going to move this issue there. But it's definitely a feature that didn't fully port from rbenv to nodenv with the latest update.

Thanks for reporting!

jasonkarns commented 3 months ago

This will be resolved soon with #876. If you're able to give that branch a try before I land it next week, I'd love to hear any feedback.

jasonkarns commented 3 months ago

This has now been released. https://github.com/nodenv/node-build/releases/tag/v5.0.0

Happy to hear feedback and if it fixes the issue for you.