7

Every time I restart vagrant in my console it will ask me my login details and then say Now using node v7.10.0 (npm v4.2.0). When I do run nvm install node I get

v13.11.0 is already installed. Now using node v13.11.0 (npm v6.13.7)

... but then I exit and come back and it's v7.10.0 again. This is causing problems with my rails apps when I try to create them because it says the latest version isn't installed, and then I have to install Yarn and it won't find it. A whole mess, not sure what to do.

Stephen O'Connor
  • 1,465
  • 1
  • 10
  • 20
cwoolf27
  • 91
  • 1
  • 3

4 Answers4

24

You can run the following command to set v13.11.0 as default

nvm alias default v13.11.0

This works for me.

Mohammad Faisal
  • 2,144
  • 15
  • 26
5

Maybe try to switch the Node version. Do nvm ls Which would give you a list of installed NodeJS versions. Then do nvm use v13.11.0 Then set it to default using: nvm alias default 13.11.0

exoad
  • 146
  • 2
  • 13
1

switch using nvm use 17 set as default with nvm alias default 17

maw
  • 11
  • 4
0

It kept reverting back everytime I would open a new instance of a terminal. I had to just delete all the other versions to get it working in the end use this command to uninstall the other node versions

nvm ls    
nvm uninstall [X.Y.Z] 
   
Siddharth
  • 1
  • 1