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

How to Install ansi-color software package in NPM Packages

ansi-color : This module provides basic ANSI color code support, to allow you to format your console output with foreground and background colors as well as providing bold, italic and underline support.. You can installing ansi-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 ansi-color
$ sudo npm install -g ansi-color

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

$ sudo npm update ansi-color

Update package globally,

$ npm install -g ansi-color

Git clone:

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

ansi-color@0.2.1 /usr/lib/node_modules/ansi-color

How to remove ansi-color package :

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

$ sudo npm uninstall ansi-color

Basic Information of ansi-color NPM Package:

Package Name ansi-color
Version 0.2.1
Description This module provides basic ANSI color code support, to allow you to format your console output with foreground and background colors as well as providing bold, italic and underline support.
Released Date 2017-03-07T22:46:02.636Z
Published by npm
How to Learn https://www.npmjs.com/package/ansi-color/tutorial