How to Install empty-dir NPM Packages on Ubuntu / Debian

How to Install empty-dir software package in NPM Packages

empty-dir : Check if a directory is empty.. You can installing empty-dir 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 empty-dir
$ sudo npm install -g empty-dir

If want to update the empty-dir package execute the command as below,

$ sudo npm update empty-dir

Update package globally,

$ npm install -g empty-dir

Git clone:

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

empty-dir@0.2.1 /usr/lib/node_modules/empty-dir

How to remove empty-dir package :

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

$ sudo npm uninstall empty-dir

Basic Information of empty-dir NPM Package:

Package Name empty-dir
Version 0.2.1
Description Check if a directory is empty.
Released Date 2016-07-29T17:52:27.266Z
Published by jonschlinkert
How to Learn https://www.npmjs.com/package/empty-dir/tutorial