install node js using nvm ubuntu

JavaScript
bash install_nvm.sh
curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh -o install_nvm.sh
sudo bash nodesource_setup.sh
cd ~
curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh

Source

Also in JavaScript: