Nvm: List all available node.js versions?

Created on 27 Nov 2011  路  17Comments  路  Source: nvm-sh/nvm

Is there a way to list all available node.js versions?

If not, could that be added?

Most helpful comment

Now that we have nvm ls-remote, I think this issue could be closed together with #84.

All 17 comments

Take a look at ac9a52886dd3c9c3110fc6fb082f01a2dabc38b7 for a historical perspective, but there's no easy and consistent way for nvm to really know what versions are available.

Your best bet is to take a look at http://nodejs.org/dist/

Edit: The changes in that commit might be more about determining what the latest stable/unstable releases are - maybe it's not out of the realm of possibility to have a quick command that spews out

curl -s http://nodejs.org/dist/ -o - | grep 'v[0-9].*' | sed -e 's/.*node-//' -e 's/\.tar\.gz.*//' -e 's/<[^>]*>//' -e 's/\/<[^>]*>.*//'

Edit 2: Also see #74

I don't get why this isn't a good thing to have. Otherwise it's like npm redirecting users to search.npmjs.org to find out what packages you can "npm install" instead of having a convenient way to just "npm search". Having to switch between browser and command prompt gives a bad user experience.

One way is to have the latest node.js repo inside nvm repo (submodule). In that way it can check what is the latest with "git tag -n". And to update nvm you just do "nvm update" and it will pull the latest changes from the node.js repo. Also in this way you don't have to download the node.js repo every time a user install a new version, just pull the delta changes with git.

Benefits:

  • Fast install, no need to download node.js repo for each version installation
  • Lookup all node.js versions
  • Good for servers without a browser
  • Simple for users

+1!

This should definitely be in there

This one lists them all:

https://github.com/visionmedia/n

+1

+1

+1, this would be quite handy...

+1, bump

update nvm version and use nvm ls-remote

:+1:

Now that we have nvm ls-remote, I think this issue could be closed together with #84.

ls-remote doesn't seem to work in windows 10

@jrgleason nvm doesn't work in windows at all. are you perhaps using nvm-windows, a different project?

I tested in OSX, Arch Linux and it works just fine.

nvm ls
You'll get something like this

         v7.9.0
->       v8.1.4

nvm list

Was this page helpful?
0 / 5 - 0 ratings