Nvm-windows: `nvm use 4.x` should match the latest node 4 version

Created on 17 May 2020  路  1Comment  路  Source: coreybutler/nvm-windows

My Environment

Windows 10 version 1909, build 18363.836

I'm using NVM4W version:

1.1.7

I have already...

  • [X] read the README to be aware of npm gotchas & antivirus issues.
  • [x] reviewed the wiki to make sure my issue hasn't already been resolved.
  • [X] verified I'm using an account with administrative privileges.
  • [X] searched the issues (open and closed) to make sure this isn't a duplicate.
  • [X] made sure this isn't a question about how to use NVM for Windows, since gitter is used for questions and comments.

My issue is related to (check only those which apply):

  • [X] enhancement request

First of all, thank you, everyone, for maintaining NVM4W.

I believe that most of NVM4W users use it for backward compatibility support, therefore they don't really care that they're using node v4.9.1 or v4.9.0, they just want to test what they're working on on node v4.

Therefore what I am suggesting is that nvm use 4 should try to find the latest minor, then find the latest patch for that version, which are installed.

nvm use 4 finds 4.9, then between 4.9.0 and 4.9.1, it should use the latest.

The reason is that I've found myself almost always doing nvm use 4, getting nvm 4.0.0 is not installed, then I need to list the versions and find what minor, and patch version of node 4 I have.
I don't think people should have to remember all the major.minor.patch versions they have installed, instead nvm should help them by doing a best effort guessing what they meant.

Most helpful comment

Or maybe nvm use 4.x for backward compatibility.

>All comments

Or maybe nvm use 4.x for backward compatibility.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thany picture thany  路  4Comments

petrovicz picture petrovicz  路  4Comments

snerte picture snerte  路  5Comments

David263 picture David263  路  3Comments

Miggleness picture Miggleness  路  6Comments