DEV Community

Cover image for Install any version of NodeJS into your Linux system with 4 easy steps
Shawon Saha
Shawon Saha

Posted on • Edited on

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

  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

Top comments (0)