nodejs setup in ubuntu code example
Example 1: linux install node
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
Example 2: install node js using nvm ubuntu
bash install_nvm.sh
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
bash install_nvm.sh