.

https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-18-04

Install with standard ubuntu apt repository

sudo apt install nodejs

sudo apt install npm

nodejs -v

Install using a PPA

To get a more recent version of node.js add the PPA.

cd ~ curl