How to Install supports-color NPM Packages on Ubuntu / Debian

How to Install supports-color software package in NPM Packages

supports-color : Detect whether a terminal supports color. You can installing supports-color npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.

$ sudo npm install supports-color
$ sudo npm install -g supports-color

If want to update the supports-color package execute the command as below,

$ sudo npm update supports-color

Update package globally,

$ npm install -g supports-color

Git clone:

$ sudo  git clone https://github.com/rektide/supports-color.git
$ sudo  npm install -g ./supports-color

supports-color@5.0.0 /usr/lib/node_modules/supports-color

How to remove supports-color package :

You can uninstall or remove this package from your node_modules run the command as below,

$ sudo npm uninstall supports-color

Basic Information of supports-color NPM Package:

Package Name supports-color
Version 5.0.0
Description Detect whether a terminal supports color
Released Date 2017-10-18T06:05:45.239Z
Published by sindresorhus
How to Learn https://www.npmjs.com/package/supports-color/tutorial