# Installation of Node.js and NPM in Alma Linux

## **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
```

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FbT4kd6f3kBcIutavlOB7%2Fimage.png?alt=media&#x26;token=b894d92c-5c4c-4769-bf5e-ad865bc476a5" alt=""><figcaption></figcaption></figure>

### Install Nodejs

Having added the EPEL repository, you can now install Node.js via your standard `yum` commands:

```
sudo yum install nodejs -y
```

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2F4I5J8VkrEZzRfJ4eHvEq%2Fimage.png?alt=media&#x26;token=65e114c1-5b70-4c13-ab4a-4a105cae6e31" alt=""><figcaption></figcaption></figure>

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

```
node --version 
```

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FcszUuuheNAViUrcQwtu8%2Fimage.png?alt=media&#x26;token=a8ced247-12cd-4305-b3cc-81ac87077af9" alt=""><figcaption></figcaption></figure>

### 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
```

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2FzRiudKyQkXUMR910YQZQ%2Fimage.png?alt=media&#x26;token=259be840-4b20-421a-a2a3-e56ee8002fbe" alt=""><figcaption></figcaption></figure>

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

```
npm --version
```

<figure><img src="https://1876135298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEC5NwtFshv6EATOemuUn%2Fuploads%2Fk8JClcjjDoMYBxCWO829%2Fimage.png?alt=media&#x26;token=b7b4729e-75c8-43b1-aa7d-7803f8e4e17a" alt=""><figcaption></figcaption></figure>
