How to Install Node JS on CentOS 8

[ad_1]

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
  • Step 2 – Install Node.js and NPM Package
  • Step 3 – Verify Installation

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.

[ad_2]

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


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *