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

How to Install require-dir software package in NPM Packages

require-dir : Helper to require() directories.. You can installing require-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 require-dir
$ sudo npm install -g require-dir

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

$ sudo npm update require-dir

Update package globally,

$ npm install -g require-dir

Git clone:

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

require-dir@0.3.2 /usr/lib/node_modules/require-dir

How to remove require-dir package :

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

$ sudo npm uninstall require-dir

Basic Information of require-dir NPM Package:

Package Name require-dir
Version 0.3.2
Description Helper to require() directories.
Released Date 2017-05-31T15:58:47.566Z
Published by aseemk
How to Learn https://www.npmjs.com/package/require-dir/tutorial