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

Immediately use installed Node.js version #1369

Open
mbwestphal opened this issue Jan 20, 2025 · 0 comments
Open

Immediately use installed Node.js version #1369

mbwestphal opened this issue Jan 20, 2025 · 0 comments

Comments

@mbwestphal
Copy link

Currently, when you run fnm use and the expected version is missing, fnm will ask you whether to install it. If you confirm that, fnm will install the new version but you will have to run fnm use again to actually use it:

$ node -v
v17.9.1
$ echo v17.0.1 > .node-version
$ fnm use
Can't find an installed Node version matching v17.0.1.
Do you want to install it? answer [y/N]: y
Installing Node v17.0.1 (x64)
00:00:04 ██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ 21.16 MiB/21.16 MiB (4.72 MiB/s, 0s)
Enabling corepack for Node v17.0.1
$ node -v
v17.9.1
$ fnm use
Using Node v17.0.1
$ node -v
v17.0.1

This is very unexpected.

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