Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove older version of Node and switch to new version?

When I node -v I get v7.10.0

I've installed with brew install node and brew upgrade node I see that 9.5 got installed.

I did brew switch node 9.5.0 and got 7 links created for /usr/local/Cellar/node/9.5.0

However when I reopen the terminal my node -v is still v7.10.0 :(

like image 598
Leon Gaban Avatar asked Nov 18 '25 10:11

Leon Gaban


1 Answers

Found the answer here, I needed to remove my .nvm folder

Unable to change version of node with brew switch

First of all, check if you installed your node with nvm by check if you have a .nvm directory in home directory ls -la if you do, remove that directory

like image 196
Leon Gaban Avatar answered Nov 21 '25 08:11

Leon Gaban