nvm use
won't match major version number only to installed version
#804
Labels
nvm use
won't match major version number only to installed version
#804
Issue:
With the Linux version of nvm, one can do:
On Windows, when you install a version it is not automatically selected. And when you use a version, it can't be referenced by just the major version number.
However, specifying the full version number works as expected, following the install:
How To Reproduce:
Run the above commands in PowerShell.
Expected Behavior:
It would be nice if nvm switched to the version being installed. That's usually what people want to do when they install a new version.
But the main reason I came to file is that I expected when typing
nvm use 15
that it would find v15.14.0 and use it. I get the impression this was the intended functionality (when I type 15, it tells me about 15.14.0 anyway) but it appears to be failing to match the major version number to an installed version, even though there is one (or more sometimes!) that should match.Additional context:
I am using a utility called gsudo to elevate to administrator as I run the NVM commands. It is awkward to start PowerShell as administrator every time, and though I saw bug titles suggesting that NVM should raise UAC prompts, I find it doesn't, and both
nvm install
andnvm use
fail without some form on intervention to make either the console or issued command run as administrator.e.g.
The text was updated successfully, but these errors were encountered: