install nodejs ubuntu 19.04

JavaScript
sudo apt install curl
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get update
sudo apt-get install nodejs
nodejs -v
npm -v
Source

Also in JavaScript: