0

I installed Node Version Manager on my device and ran nvm install 8.8.1, but now when I try to update to 18 it doesn't work. Every time I start up my machine I have to run nvm use 18.

I need to make sure it is always on 18. Any ideas?

TPGlitch
  • 1
  • 5
  • 1
    Does this answer your question? [How can the default node version be set using NVM?](https://stackoverflow.com/questions/47190861/how-can-the-default-node-version-be-set-using-nvm) – Konrad Feb 05 '23 at 21:27
  • @Konrad I saw it, and It got me excited. I ran the command `nvm alias default 18`, created new folder, and ran `node -v1', sure enough, output was 8.8.1 – TPGlitch Feb 05 '23 at 21:30
  • did you also try the other answer? https://stackoverflow.com/a/72532347/5272567 – Matthias Feb 06 '23 at 09:25

1 Answers1

0

You can try this:

nvm alias default 18

nvm use 18
Tyler2P
  • 2,324
  • 26
  • 22
  • 31