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- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | 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