Installation
RHEL 8
-
Enable the EPEL (Extra Packages for Enterprise Linux) repository
-
sudo dnf install epel-release
-
Install Node.js from the EPEL repository
-
sudo dnf install nodejs
-
Verify the installation by running
-
node -v
Ubuntu
-
Update the package index
-
sudo apt-get update
-
Install the required dependencies
-
sudo apt-get install -y curl gnupg
-
Add the Node.js repository
-
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
-
Install Node.js
-
sudo apt-get install -y nodejs
-
Verify the installation by running
-
node -v