sudo apt install nodejs
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install nodejs
npm install -g npm@latest
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_18.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
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install nodejs
npm install -g npm@latest
curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash -