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

How to Install ansi-styles software package in NPM Packages

ansi-styles : ANSI escape codes for styling strings in the terminal. You can installing ansi-styles 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-styles
$ sudo npm install -g ansi-styles

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

$ sudo npm update ansi-styles

Update package globally,

$ npm install -g ansi-styles

Git clone:

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

ansi-styles@3.2.0 /usr/lib/node_modules/ansi-styles

How to remove ansi-styles package :

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

$ sudo npm uninstall ansi-styles

Basic Information of ansi-styles NPM Package:

Package Name ansi-styles
Version 3.2.0
Description ANSI escape codes for styling strings in the terminal
Released Date 2017-07-23T11:25:48.038Z
Published by sindresorhus
How to Learn https://www.npmjs.com/package/ansi-styles/tutorial