How to Install lodash.compact NPM Packages on Ubuntu / Debian

How to Install lodash.compact software package in NPM Packages

lodash.compact : The lodash method `_.compact` exported as a module.. You can installing lodash.compact 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 lodash.compact
$ sudo npm install -g lodash.compact

If want to update the lodash.compact package execute the command as below,

$ sudo npm update lodash.compact

Update package globally,

$ npm install -g lodash.compact

Git clone:

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

lodash.compact@3.0.1 /usr/lib/node_modules/lodash.compact

How to remove lodash.compact package :

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

$ sudo npm uninstall lodash.compact

Basic Information of lodash.compact NPM Package:

Package Name lodash.compact
Version 3.0.1
Description The lodash method `_.compact` exported as a module.
Released Date 2016-03-02T05:27:55.046Z
Published by jdalton
How to Learn https://www.npmjs.com/package/lodash.compact/tutorial