$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

How to Add Node JS Enterprise Linux Repository

June 13, 2018 | By the+gnu+linux+evangelist.

GNU/Linux Enterprise Adding Node JS Repo

The Guide shows you Step-by-step How to Add the Node JS Repository for Enterprise GNU/Linux 8+ Based Systems.

And with this Node JS Repo Setup you’ll be able to Install the latest node.js Releases, included: 20.x LTS, 22.x LTS, and Current.

For more insight see the official: NodeJs Repository Documentation.

So this Guide is valid for all the Red Hat Enterprise Linux Based Distros:

  • Red Hat Enterprise Linux
  • CentOS
  • Rocky Linux
  • AlmaLinux
  • Oracle Enterprise Linux
  • Amazon Linux
How to Add Node JS Enterprise Linux Repository
  1. 1. Accessing Shell

    Open a Shell Session
    (Press “Enter” to Execute Commands)

    How to Add Node JS Enterprise Linux Repository - Open Terminal
  2. 2. Installing EPEL Repository

    How to Enable EPEL Repository for Enterprise GNU/Linux

    Add EPEL Repo
  3. 3. Setting Up Node.js Repo

    Then Add Node JS CentOS Repository Especially relevant: Node.js 18+ is supported only on CentOS 8+.
    Now for Node 23.x run:
    curl -fsSL https://rpm.nodesource.com/setup_23.x | sudo -E bash -
    Again for 22 LTS run:
    curl -fsSL https://rpm.nodesource.com/setup_22.x | sudo -E bash -
    So for 20 LTS run:
    curl -fsSL https://rpm.nodesource.com/setup_20.x | sudo -E bash -
    Especially relevant: for RHEL 10 based amend the Repo manually to 9!
    Finally, due to the quick NodeJs development cycle sometimes the latest Releases may be missing from this list, in case consult: Node.js Repo on Github.
  4. 4. Installing Node.js

    Now to Install NodeJs on CentOS
    Play:

    sudo dnf install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1
    Or for Legacy releases:
    sudo yum install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1
  5. 5. Node.js Getting Started Guide

    Getting Started with Node.js on GNU/Linux
    Node.js CentOS QuickStart Guide