serve-index : Serve directory listings. You can installing serve-index 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 serve-index $ sudo npm install -g serve-index
If want to update the serve-index package execute the command as below,
$ sudo npm update serve-index
Update package globally,
$ npm install -g serve-index
$ sudo git clone https://github.com/rektide/serve-index.git
$ sudo npm install -g ./serve-index
serve-index@1.9.1 /usr/lib/node_modules/serve-index
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall serve-index
| Package Name | serve-index |
| Version | 1.9.1 |
| Description | Serve directory listings |
| Released Date | 2017-09-29T04:37:10.468Z |
| Published by | dougwilson |
| How to Learn | https://www.npmjs.com/package/serve-index/tutorial |