Installation of Node.js and NPM in Alma Linux
In this guide, we will show you how to install Node.js and npm on Alma Linux, providing simple steps for seamless development setup. Get started quickly!
Install Node.js and NPM
Prerequisites:-
To follow this guide, you will need an Alma Linux setup
Install Node from the EPEL Repository
Update && upgrade server
yum update -y && yum upgrade -y
Accessing the EPEL Repository
To access the Extra Packages for Enterprise Linux (EPEL) repository, you need to adjust your system's repository settings. This can be easily done by installing the epel-release
package from your current repositories. This package configures your system to access the EPEL repo.
sudo yum install epel-release -y

Install Nodejs
Having added the EPEL repository, you can now install Node.js via your standard yum
commands:
sudo yum install nodejs -y

To confirm the installation was successful, you can ask Node to display its version number:
node --version

Install NPM
To manage Node packages, you'll likely need npm, which can be installed from EPEL with the following command:
sudo yum install npm -y

To confirm the installation was successful, you can ask npm to display its version number:
npm --version

Last updated