You can download this file from the browser or from the console. The latter is shown below (note: the specific Node.js version might be different for you):
wget http://nodejs.org/dist/v14.15.0/node-v14.15.0-linux-x64.tar.gz
sudo tar -C /usr/local --strip-components 1 -xzf node-v14.15.0-linux-x64.tar.gz
You may find list of node version on http://nodejs.org/dist/
You should now have both Node.js and npm installed in “/usr/local/bin”. You can check this typing:
ls -l /usr/local/bin/node ls -l /usr/local/bin/npm
An alternative way to install Node.js via the package manager:
Installing Node.js via package manager
sudo apt-get purge nodejs
sudo apt-get autoremove