How to Install relative NPM Packages on Ubuntu / Debian

How to Install relative software package in NPM Packages

relative : Get the relative filepath from path A to path B. Calculates from file-to-directory, file-to-file, directory-to-file, and directory-to-directory.. You can installing relative 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 relative
$ sudo npm install -g relative

If want to update the relative package execute the command as below,

$ sudo npm update relative

Update package globally,

$ npm install -g relative

Git clone:

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

relative@3.0.2 /usr/lib/node_modules/relative

How to remove relative package :

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

$ sudo npm uninstall relative

Basic Information of relative NPM Package:

Package Name relative
Version 3.0.2
Description Get the relative filepath from path A to path B. Calculates from file-to-directory, file-to-file, directory-to-file, and directory-to-directory.
Released Date 2015-11-12T06:53:57.116Z
Published by jonschlinkert
How to Learn https://www.npmjs.com/package/relative/tutorial