xxxxxxxxxx
first you can compile
sudo apt-get install -y build-essential
xxxxxxxxxx
sudo apt install curl
curl -sL https://deb.nodesource.com/setup_6.x | sudo bash -
sudo apt-get install -y nodejs
sudo apt-get install -y npm
Windows WSL Ubuntu 20.04
xxxxxxxxxx
sudo apt update
sudo apt upgrade
sudo apt install nodejs npm -y
xxxxxxxxxx
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs