Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node keeps reverting back to older version

Tags:

node.js

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.

like image 244
cwoolf27 Avatar asked Nov 30 '22 13:11

cwoolf27


1 Answers

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

nvm alias default v13.11.0

This works for me.

like image 105
Mohammad Faisal Avatar answered Dec 03 '22 04:12

Mohammad Faisal