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.
- Install the wget (if you haven’t)
yum install wget
- 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 - 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 - Verify the Node version
node -v
result : v12.14.1
- Verify the NPM version
npm -v
result : 6.13.4
That’s it. I hope this will help. 🙂
Photo: Nodejs icon icon by Icons8