How to Install directory-tree NPM Packages on Ubuntu / Debian

How to Install directory-tree software package in NPM Packages

directory-tree : Convert a directory tree to a JS object.. You can installing directory-tree 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 directory-tree
$ sudo npm install -g directory-tree

If want to update the directory-tree package execute the command as below,

$ sudo npm update directory-tree

Update package globally,

$ npm install -g directory-tree

Git clone:

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

directory-tree@2.0.0 /usr/lib/node_modules/directory-tree

How to remove directory-tree package :

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

$ sudo npm uninstall directory-tree

Basic Information of directory-tree NPM Package:

Package Name directory-tree
Version 2.0.0
Description Convert a directory tree to a JS object.
Released Date 2017-05-17T05:41:56.759Z
Published by mihneadb
How to Learn https://www.npmjs.com/package/directory-tree/tutorial