How To Install nodejs-depd on CentOS 7

In this tutorial we learn how to install nodejs-depd on CentOS 7. nodejs-depd is NodeJS library for displaying deprecation messages to users

Introduction

In this tutorial we learn how to install nodejs-depd on CentOS 7.

What is nodejs-depd

This library allows you to display deprecation messages to your users. This library goes above and beyond with deprecation warnings by introspection of the call stack (but only the bits that it is interested in).

We can use yum or dnf to install nodejs-depd on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install nodejs-depd.

Install nodejs-depd on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install nodejs-depd using yum by running the following command:

sudo yum -y install nodejs-depd

Install nodejs-depd on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install nodejs-depd using dnf by running the following command:

sudo dnf -y install nodejs-depd

How To Uninstall nodejs-depd on CentOS 7

To uninstall only the nodejs-depd package we can use the following command:

sudo dnf remove nodejs-depd

References

Summary

In this tutorial we learn how to install nodejs-depd on CentOS 7 using yum and dnf.