Skip to main content

Installation

RHEL 8

  1. Enable the EPEL (Extra Packages for Enterprise Linux) repository

  2. sudo dnf install epel-release

  3. Install Node.js from the EPEL repository

  4. sudo dnf install nodejs

  5. Verify the installation by running

  6. node -v

Ubuntu

  1. Update the package index

  2. sudo apt-get update

  3. Install the required dependencies

  4. sudo apt-get install -y curl gnupg

  5. Add the Node.js repository

  6. curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -

  7. Install Node.js

  8. sudo apt-get install -y nodejs

  9. Verify the installation by running

  10. node -v