install node ubuntu

Shell
sudo apt install nodejssudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt-get install nodejs
# Check node version
node -v 
# v13.9.0
# Also, check the npm version
npm -v 
# 6.13.7// Enabling NodeSource Repository
// replace %V% with desired major version
curl -sL https://deb.nodesource.com/setup_%V%.x | sudo bash -
// Install using apt-get
sudo apt-get install -y nodejs
// check installed node version
node --versionhttps://www.webucator.com/how-to/how-install-nodejs-on-mac.cfmbash install_nvm.sh
sudo bash nodesource_setup.sh

Source

Also in Shell: