Install any version of NodeJS into your Linux system with 4 easy steps

Shawon Saha - Jan 6 '23 - - Dev Community
  1. Go to https://nodejs.org/en/download/releases/ and Choose your prefered version

  2. Right click on node-vxx.xx.x-linux-x64.tar.gz and copy the link. Make sure the extention is tar.gz
    NodeJS Other release page

  3. Open terminal and type wget <url that you've copied>
    It will download NodeJs tarball into your system.
    NodeJS installation guide on linux

  4. After completion of download, run this command

sudo tar -C /usr/local --strip-components 1 -xzf node-vxx.xx.x-linux-x64.tar.gz
Enter fullscreen mode Exit fullscreen mode

Replace 'x' with your downloaded package's version

NodeJS installation guide on linux

Now run node -v
if it show your desired version then congratulations.

Checking nodeJS verions on linux

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .