Search code examples
node.jsnvm

Node version is not persisting after update with NVM


I updated my node version from 8.x.x to 13.x.x using the cmds below:

nvm install stable

Running node -v immediately after this, shows the updated version. But re-opening the terminal the older version of node persists.

I had to do: nvm use 13 to enable node 13.x.x

What is the ideal way to keep using the latest node version with explicitly using nvm use every time?


Solution

  • nvm alias default 13
    

    This solved the issue and set the node version permanent to 13.x.x