How to Install lex NPM Packages on Ubuntu / Debian

How to Install lex software package in NPM Packages

lex : An elegant armor-plated JavaScript lexer modelled after flex. Easily extensible to tailor to your need for perfection.. You can installing lex 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 lex
$ sudo npm install -g lex

If want to update the lex package execute the command as below,

$ sudo npm update lex

Update package globally,

$ npm install -g lex

Git clone:

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

lex@1.7.9 /usr/lib/node_modules/lex

How to remove lex package :

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

$ sudo npm uninstall lex

Basic Information of lex NPM Package:

Package Name lex
Version 1.7.9
Description An elegant armor-plated JavaScript lexer modelled after flex. Easily extensible to tailor to your need for perfection.
Released Date 2015-08-16T01:39:48.560Z
Published by aaditmshah
How to Learn https://www.npmjs.com/package/lex/tutorial