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

nvm use sets wrong version #237

Open
scarf005 opened this issue Jan 10, 2025 · 0 comments
Open

nvm use sets wrong version #237

scarf005 opened this issue Jan 10, 2025 · 0 comments

Comments

@scarf005
Copy link

scarf005 commented Jan 10, 2025

Problem

Sometimes nvm use {version} will point to wrong version.

> nvm use 18
Now using Node v23.5.0 (npm 10.9.2) /opt/homebrew/Cellar/node/23.5.0/bin/node

in this case, despite running nvm use 18, nvm wrongly points to node 23.

> nvm use 18
Now using Node v23.5.0 (npm 10.9.2) /opt/homebrew/Cellar/node/23.5.0/bin/node
> nvm use 23
Now using Node v23.3.0 (npm 10.9.0) ~/.local/share/nvm/v23.3.0/bin/node
> nvm use 18
Now using Node v18.12.1 (npm 8.19.2) ~/.local/share/nvm/v18.12.1/bin/nod

this can be workaround by switching to a different version then setting desired version.

System information

$ nvm --version
nvm, version 2.2.16
$ fish --version
fish, version 3.7.1
$ cat .nvmrc
18.12.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant