Jump to content

Installing Nodejs 18 on Centos Stream 8/9 AlmaLinux 8/9 RockyLinux 8/9


Recommended Posts

Node.js is an open-source, cross-platform, JavaScript runtime environment that executes JavaScript code outside of a web browser. It allows developers to build server-side applications using JavaScript, which was traditionally used only on the client-side.

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


Install Node.js:

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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...