13

I installed Node 9.11.1 using nvm install and my projects can use the updated features but whenever I reboot I get reset to v6.10.1. I've checked this answer nvm keeps "forgetting" node in new terminal session and upon typing nvm list I see that the green arrow points to v6.10.1 but v9.11.1 is installed.

What do I need to do to make Node default to 9.11.1 after a reboot?

Scott
  • 1,154
  • 1
  • 12
  • 25

3 Answers3

30

To set default version type:

nvm alias default 9.11.1

After a reboot you will have 9.11.1 version.

4ndt3s
  • 3,238
  • 2
  • 20
  • 30
2

Somehow top answer didn't help me, but similar command helped:

nvm alias default node
Sasha Omelchenko
  • 250
  • 3
  • 12
-4

nvm use 9.11.1 is all I needed to type in to fix this problem

Scott
  • 1,154
  • 1
  • 12
  • 25