install node manually from tar.gz files

You can uninstall and then install the node manually.

You have to download your current running version.

https://nodejs.org/dist/v12.12.0/

Download the node-v{your-current-version-number}.tar.gz, extract it and then go to command line.


cd node-v{your-current-version-number}
./configure
make
sudo make install

To uninstall it sudo make uninstall

Then download the version you want to install and follow same steps above.