curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
After that Run following command
sudo apt-get install -y nodejs
Check the version numbers of node and npm to check if they are installed correctly.
node -v
npm -v
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
After that Run following command
sudo apt-get install -y nodejs
Check the version numbers of node and npm to check if they are installed correctly.
node -v
npm -v
Written by Tushar