ubuntu 18.04 upgrade nodejs code example
Example 1: install nodejs ubuntu 20.04
sudo apt install nodejs
Example 2: install nodejs from ubuntu 18.04
cd ~
curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh
sudo apt install nodejs
cd ~
curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh