Install nodejs using nvm

Installation of node on ubuntu using node version manager

Node Version Manager is Simple bash script to manage multiple active node.js versions.

Installation of nvm is a single command

curl -o- | bash
# reload the terminal or execute
source .bashrc

List installed node versions

nvm ls

List available node versions

nvm ls-remote

Install the last versions

nvm install node

Install the last LTS version

nvm install --lts