Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken 'nvm use' command on v1.1.9 #870

Closed
guilhermejcgois opened this issue Oct 25, 2022 · 6 comments
Closed

Broken 'nvm use' command on v1.1.9 #870

guilhermejcgois opened this issue Oct 25, 2022 · 6 comments

Comments

@guilhermejcgois
Copy link

Issue:

Can't use installed versions of node through nvm use command. I have re-installed nvm-windows 1.1.9 using scoop but the problem persist. Downgrade to 1.1.8 works as expected.

How To Reproduce:

  1. scoop install nvm@1.1.9
  2. nvm install 19
  3. nvm use 19
  4. See error node v19.0.0 is not installed.

Expected Behavior:

I can change the current installed node version.

@guilhermejcgois guilhermejcgois changed the title Broken 'nvm use' on v1.1.9 Broken 'nvm use' command on v1.1.9 Oct 25, 2022
@hyunbinseo
Copy link

Personally seeing a vv18.12.0 (64-bit) message with two vs.

PS C:\Windows\System32> nvm use 18
node vv18.12.0 (64-bit) is not installed or cannot be found.

Providing the full version number works in nvm version 1.1.9.

PS C:\Windows\System32> nvm use 18.12.0
Now using node v18.12.0 (64-bit)

@acambule
Copy link

acambule commented Oct 27, 2022

I experience the same problem on v. 1.1.9,
and even if nvm tells you it works, the proof shows the opposite:

image

@dsl101
Copy link

dsl101 commented Oct 27, 2022

Same as @hyunbinseo for me—short version broken, long version works. Not seeing the incorrect version reported as @acambule is, and confirmed working with node --version:

image

@DarkMatterMatt
Copy link

The fix has been merged in #709, but the next release date is unknown. Workaround is to explicitly use the full version (e.g. nvm use 18.12.0 instead of nvm use 18).

For more info look at the issues that this is a duplicate of: github.com/coreybutler/nvm-windows/issues?q="is not installed or cannot be found"

@dsl101
Copy link

dsl101 commented Oct 28, 2022

Thanks—that fix was originally written nearly a year ago, so no wonder there are duplicate issues... Fingers crossed the release will be soon :).

@coreybutler
Copy link
Owner

Duplicate of #708. Resolved in NVM4W 1.1.10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants