Install Node.js and NPM on Linux (RHEL 7) from Binaries

Today I will tell you guys that how we can install Node.js and NPM on Linux from Binaries (.tar.gz) file. Before that we have to verify that wget is already installed to the server or not because we need to use that command to download the Binaries file.

  1. Install the wget (if you haven’t)
    yum install wget
  2. Create a new folder and download the binaries file
    mkdir /home/user/downloads
    cd /home/user/downloads
    wget https://nodejs.org/dist/v12.14.1/node-v12.14.1-linux-x64.tar.gz

  3. Unzip and install under /usr/local folder
    cd /usr/local
    tar --strip-components 1 -xzf /home/user/download/node-v12.14.1-linux-x64.tar.gz

  4. Verify the Node version
    node -v
    result : v12.14.1
  5. Verify the NPM version
    npm -v
    result : 6.13.4

That’s it. I hope this will help. 🙂
Photo: Nodejs icon icon by Icons8

Leave a Reply

Your email address will not be published. Required fields are marked *