How To Install nodejs-colors on Fedora 36

In this tutorial we learn how to install nodejs-colors in Fedora 36. nodejs-colors is Get colors in your Node.js console

Introduction

In this tutorial we learn how to install nodejs-colors on Fedora 36.

What is nodejs-colors

Get colors in your Node.js console.

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

Install nodejs-colors on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install nodejs-colors

Install nodejs-colors on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install nodejs-colors

How To Uninstall nodejs-colors on Fedora 36

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

sudo dnf remove nodejs-colors

nodejs-colors Package Contents on Fedora 36

/usr/lib/node_modules/colors
/usr/lib/node_modules/colors/lib
/usr/lib/node_modules/colors/lib/colors.js
/usr/lib/node_modules/colors/lib/custom
/usr/lib/node_modules/colors/lib/custom/trap.js
/usr/lib/node_modules/colors/lib/custom/zalgo.js
/usr/lib/node_modules/colors/lib/extendStringPrototype.js
/usr/lib/node_modules/colors/lib/index.js
/usr/lib/node_modules/colors/lib/maps
/usr/lib/node_modules/colors/lib/maps/america.js
/usr/lib/node_modules/colors/lib/maps/rainbow.js
/usr/lib/node_modules/colors/lib/maps/random.js
/usr/lib/node_modules/colors/lib/maps/zebra.js
/usr/lib/node_modules/colors/lib/styles.js
/usr/lib/node_modules/colors/lib/system
/usr/lib/node_modules/colors/lib/system/has-flag.js
/usr/lib/node_modules/colors/lib/system/supports-colors.js
/usr/lib/node_modules/colors/package.json
/usr/lib/node_modules/colors/safe.js
/usr/lib/node_modules/colors/themes
/usr/lib/node_modules/colors/themes/generic-logging.js
/usr/share/doc/nodejs-colors
/usr/share/doc/nodejs-colors/README.md
/usr/share/doc/nodejs-colors/ROADMAP.md
/usr/share/doc/nodejs-colors/examples
/usr/share/doc/nodejs-colors/examples/normal-usage.js
/usr/share/doc/nodejs-colors/examples/safe-string.js
/usr/share/licenses/nodejs-colors
/usr/share/licenses/nodejs-colors/LICENSE

References

Summary

In this tutorial we learn how to install nodejs-colors on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).