Go to https://nodejs.org/en/download/releases/ and Choose your prefered version
Right click on
node-vxx.xx.x-linux-x64.tar.gz
and copy the link. Make sure the extention is tar.gz
Open terminal and type
wget <url that you've copied>
It will download NodeJs tarball into your system.
After completion of download, run this command
sudo tar -C /usr/local --strip-components 1 -xzf node-vxx.xx.x-linux-x64.tar.gz
Replace 'x' with your downloaded package's version
Now run node -v
if it show your desired version then congratulations.
Top comments (0)