GNU/Linux Fedora Adding Node JS Repository
Hi! The Guide shows you Step-by-step How to Add the Node JS Repository for Fedora Supported Releases GNU/Linux Systems.
And with this Node JS Fedora Repo Setup you’ll be able to Install both node.js 16.x LTS, 18.x LTS, 20.x LTS, 21.x, 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 18+ is supported only on Fedora 29+.
For the 22.x relase use:curl -fsSL https://rpm.nodesource.com/setup_22.x | sudo bash -
Where for 21.x:
curl -fsSL https://rpm.nodesource.com/setup_21.x | sudo bash -
Instead for the 20.x relase use:
curl -fsSL https://rpm.nodesource.com/setup_20.x | sudo bash -
Again for 18.x:
curl -fsSL https://rpm.nodesource.com/setup_18.x | sudo bash -
Otherwise for 16.x:
curl -fsSL https://rpm.nodesource.com/setup_16.x | sudo 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 --setopt=nodesource-nodejs.module_hotfixes=1 -y --setopt=nodesource-nodejs.module_hotfixes=1
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