Tutorial Install Nodejs on AlmaLinux 8.4
Introduction to AlmaLinux
As you know, CentOS is one of the most popular Linux distributions, but it is not going to be released as it used to be! In general, CentOS will no longer be stable! This is the decision of the new owner of CentOS, RedHat. So the decision was made by one of the companies that relied on CentOS products to release a Linux distribution just like CentOS called AlmaLinux OS, which is exactly the same as CentOS based on RedHat.
AlmaLinux for free and open-source, just like CentOS, can quickly gain popularity. In addition, there is a solution to convert existing CentOS servers to AlmaLinux, which can be done with just one command, and all services will run on the server without interruption.
The AlmaLinux site can provide you with more information about this Linux distribution. Since there is a company like Cloud Linux behind such a distribution, many people have decided to trust and use this distribution. So at least you can try it.
What is Nodejs?
1- Asynchronous and pivotal event
2- High speed
3- Single-subject but very scalable
4- No buffering
Prerequisites for Install Nodejs on AlmaLinux 8.4
In this section, we will list the prerequisites that you must provide for Install Nodejs on AlmaLinux 8.4. These prerequisites are:
_ An AlmaLinux installed dedicated server
_ A root user access or normal user with administrative privileges
Install Nodejs on AlmaLinux 8.4
In this section, we are going to teach you how to Install Nodejs on AlmaLinux 8.4. To do this, you must follow the steps below.
The first step is to keep the server up to date using the following command:
dnf update -y
You should then list the available Nodejs streams by running the following command. It should note that the stream is compatible with the original version of Nodejs:
dnf module list nodejs
Finally, you can install Nodejs on AlmaLinux using the following command:
dnf module install nodejs:14
How to verify Nodejs on AlmaLinux 8.4
In the previous sections, you were introduced to Nodejs and AlmaLinux. We also explained how to install Nodejs on AlmaLinux 8.4. Now you can easily verify Nodejs in AlmaLinux 8.4 by running the following command:
node -v && npm -v