How to Install NodeJS on Rocky Linux 10
Node.js is a fast, event-driven JavaScript runtime built on Chrome's V8 engine. It's widely used for building scalable network applications, backend APIs, and real-time services. Its non-blocking I/O model makes it ideal for building fast and lightweight applications.
In this guide, we'll walk through the steps to install Node.js on Rocky Linux 10 using the AppStream module system.
Update the System
Before installing Node.js, update your system packages to the latest versions:
dnf update -y
Add the NodeSource repository for Node.js 22.x (latest stable)
curl -fsSL https://rpm.nodesource.com/setup_22.x | bash -
Install Node.js:
dnf install -y nodejs
Verify the version
node -v
Output:
[root@vps rustdesk]# node -v
v22.16.0
Also verify npm:
npm -v
Output:
[root@vps rustdesk]# npm -v
10.9.2
Conclusion
You’ve successfully installed Node.js v20 on Rocky Linux 10. You can now:
- Use
npmto manage packages - Create backend APIs
- Host full-stack applications using frameworks like Express.js
If you encounter any issues or need assistance, feel free to reach out to us via Support Ticket.
CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME for 10% off!
1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month
Available Locations: LAX | MIA | ATL | FRA | AMS