How to Install app-root-dir NPM Packages on Ubuntu / Debian

How to Install app-root-dir software package in NPM Packages

app-root-dir : Simple module to infer the root directory of the currently running node application. You can installing app-root-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 app-root-dir
$ sudo npm install -g app-root-dir

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

$ sudo npm update app-root-dir

Update package globally,

$ npm install -g app-root-dir

Git clone:

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

app-root-dir@1.0.2 /usr/lib/node_modules/app-root-dir

How to remove app-root-dir package :

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

$ sudo npm uninstall app-root-dir

Basic Information of app-root-dir NPM Package:

Package Name app-root-dir
Version 1.0.2
Description Simple module to infer the root directory of the currently running node application
Released Date 2015-05-28T15:51:58.559Z
Published by philidem
How to Learn https://www.npmjs.com/package/app-root-dir/tutorial