Articles

How to Install Node JS on CentOS 8

By Rabins Sharma Lamichhane

September 25, 2022

Install node js on CentOS 8 system; Through this tutorial, we will learn how to install node js on centOS 8 system using terminal or command line.

How to Install Node JS in CentOS 8 From Default Package Repository

Just follow the following steps to install node js on centos 8 system:

Step 1 – Update the CentOS 8 Package

First of all, execute the following command on command line to update the centos 8 system package:

sudo dnf makecache

Step 2 – Install Node.js and NPM Package

Then execute the following command on command line or prompt to install Node.js and NPM package manager on CentOS 8 from the official package repository of CentOS 8:

sudo dnf install nodejs npm

Step 3 – Verify Installation

Once Node.js and NPM is installed, check whether Node.js and npm are working correctly as follows:

node --version npm --version

Conclusion

Through this tutorial, we have learned how to install node js on CentOS 8 system using terminal or command line.

Images mentioned above related to CentOS are either copyright property of respective image owners.

Share this: