What is Node.js?
Step 1 – Update the server package index
sudo apt update
Step 2 – Install Node.js on Ubuntu 20.04
sudo apt install nodejs
This will allow you to install modules and packages to be used with Node.js.
sudo apt install npm
root@node1:~# node -v v10.19.0 root@node1:~#