rootpath : Little helper to make node.js require relative to your project root. You can installing rootpath 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 rootpath $ sudo npm install -g rootpath
If want to update the rootpath package execute the command as below,
$ sudo npm update rootpath
Update package globally,
$ npm install -g rootpath
$ sudo git clone https://github.com/rektide/rootpath.git
$ sudo npm install -g ./rootpath
rootpath@0.1.2 /usr/lib/node_modules/rootpath
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall rootpath
| Package Name | rootpath |
| Version | 0.1.2 |
| Description | Little helper to make node.js require relative to your project root |
| Released Date | 2014-04-29T10:08:42.445Z |
| Published by | fabmos |
| How to Learn | https://www.npmjs.com/package/rootpath/tutorial |