Cannot install newer version of nodejs in RHEL 8

Solution Verified - Updated -

Issue

  • Need to install nodejs version newer than nodejs 10
  • Only nodejs 10 can be installed when running yum install nodejs

    # yum install nodejs
     Updating Subscription Management repositories.
     Last metadata expiration check: 0:06:40 ago on Tue 02 Jan 2024 12:58:55 PM EST.
     Dependencies resolved.
    
     Installing:
      nodejs                x86_64     1:10.24.0-1.module+el8.3.0+10166+b07ac28e              rhel-8-for-x86_64-appstream-rpms
     Installing dependencies:
      npm                   x86_64     1:6.14.11-1.10.24.0.1.module+el8.3.0+10166+b07ac28e    rhel-8-for-x86_64-appstream-rpms                          
     Installing weak dependencies:
      nodejs-full-i18n      x86_64     1:10.24.0-1.module+el8.3.0+10166+b07ac28e              rhel-8-for-x86_64-appstream-rpms                          
     Enabling module streams:
      nodejs                10
    
    

Environment

  • Red Hat Enterprise Linux 8
  • nodejs

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content