Install Nodejs 18 on Centos Stream 8/9 Almalinux 8/9 Rockylinux 8/9
One of the key features of Node.js is its non-blocking, event-driven I/O model, which allows applications to handle a large number of concurrent connections with relatively low memory overhead. This makes it well-suited for building real-time applications like chat applications, online games, and collaborative editing tools.
Please note from version 18 centos 7 is not supported due to older version of dependencies.
To install Node.js 18 on CentOS using the NodeSource repository, you can follow these steps:
Install the required packages:
dnf install -y curl gnupg2
Add the NodeSource repository:
curl -sL https://rpm.nodesource.com/setup_18.x | sudo bash -
Disable nodejs module :
dnf module disable nodejs
dnf install -y nodejs
Verify that Node.js and npm are installed:
node -v npm -v
You’ve successfully installed Node.js 18 on your CentOS 8/9 system using the NodeSource repository.