How to install Node using NVM on Ubuntu?
First, you need to install the NVM on your machine before installing the Node.js. If you haven’t done so, please check my previous post here.
Install the latest Node.js version
$ nvm install node
If you want to install the latest Node.js LTS version use the following command.
$ nvm install --lts
Use the following command to activate the Node.
$ nvm use node nvm use --lts
To change the node version
nvm use 12.16.1
That’s it. I hope this will help. 🙂
Photo: Nodejs icon icon by Icons8