install latest version of node js ubuntu 18.04 code example
Example 1: install node js using nvm ubuntu
curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh -o install_nvm.sh
Example 2: install nodejs from ubuntu 18.04
cd ~
curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh