1sudo apt-get install curl
2curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
3sudo apt-get install nodejs
4# Check node version
5node -v
6# v13.9.0
7# Also, check the npm version
8npm -v
9# 6.13.7
1wget -qO- https://deb.nodesource.com/setup_14.x | sudo -E bash -
2sudo apt install -y nodejs
1sudo curl -o /usr/local/bin/n https://raw.githubusercontent.com/visionmedia/n/master/bin/n