How to Install Node JS on CentOS 8

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.

Recommended CentOS Tutorials

AuthorAdmin

My name is Devendra Dode. I am a full-stack developer, entrepreneur, and owner of Tutsmake.com. I like writing tutorials and tips that can help other developers. I share tutorials of PHP, Python, Javascript, JQuery, Laravel, Livewire, Codeigniter, Node JS, Express JS, Vue JS, Angular JS, React Js, MySQL, MongoDB, REST APIs, Windows, Xampp, Linux, Ubuntu, Amazon AWS, Composer, SEO, WordPress, SSL and Bootstrap from a starting stage. As well as demo example.

Leave a Reply

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