GNU/Linux Fedora Adding Node JS Repository
The Guide shows you Step-by-step How to Add the Node JS Repository for Fedora 29+ GNU/Linux Systems.
And with this Node JS Fedora 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.
Again, this Node Repo Setup should be Valid for Fedora 20+.
Finally, this Setup is valid for all the Fedora Based Distros like:
- Nobara
- Quebe OS
- Ultramarine
- risiOS

-
1. Terminal QuickStart
How to QuickStart with Command Line on Fedora
-
2. Setting Up Node.js Repo
Then Add Node JS Fedora Repository
Especially relevant: Node.js 20+ is supported only on Fedora 29+.
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 -
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.
-
3. Installing Node.js
Now to Install NodeJs on Fedora
Play:sudo dnf install nodejs -y
Or for Legacy releases:
sudo yum install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1
-
4. Node.js Getting Started Guide
Getting Started with Node.js on GNU/Linux