how to install nodejs in mint/linux via package manager
--steps--
1 goto this link -> https://nodejs.org/en/download/
2 scroll and select Installing Node.js via package manager link
3 then after click on Debian and Ubuntu based Linux distributions, Enterprise Linux/Fedora and Snap packages link
4 then click on Node.js binary distributions link
5 scroll down check nodejs version and follow command you install successfully
if not follow above step simply select this link Click here to install NODEJS
like i install and commands are
# Using Ubuntu i follow this one and successfully install node
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
# Using Debian, as root
curl -sL https://deb.nodesource.com/setup_12.x | bash -
apt-get install -y nodejs