Install node.js/npm in Ubuntu

Update your package sources:

sudo apt update

Install node.js and npm, the package manager:

sudo apt install nodejs npm

The executable in Linux is termed “nodejs” and not “node”.

From: DO