node js latest on ubuntu code example
Example 1: debian install node js
su -
apt install curl -y
curl -sL https://deb.nodesource.com/setup_14.x | bash -
apt install -y nodejs
Example 2: install nodejs from ubuntu 18.04
cd ~
curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh