install node alongwith npm for ubuntu 20.04 code example
Example 1: install nodejs ubuntu 20.04
sudo apt install nodejs
Example 2: npm install ubuntu 20.04
$ sudo apt install nodejs
sudo apt install nodejs
$ sudo apt install nodejs