How to Install connect-gzip-static NPM Packages on Ubuntu / Debian

How to Install connect-gzip-static software package in NPM Packages

connect-gzip-static : gzip/brotli static middleware for connect - serves compressed files if they exist, falls through to connect-static if they dont. You can installing connect-gzip-static 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 connect-gzip-static
$ sudo npm install -g connect-gzip-static

If want to update the connect-gzip-static package execute the command as below,

$ sudo npm update connect-gzip-static

Update package globally,

$ npm install -g connect-gzip-static

Git clone:

$ sudo  git clone https://github.com/rektide/connect-gzip-static.git
$ sudo  npm install -g ./connect-gzip-static

connect-gzip-static@2.1.1 /usr/lib/node_modules/connect-gzip-static

How to remove connect-gzip-static package :

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

$ sudo npm uninstall connect-gzip-static

Basic Information of connect-gzip-static NPM Package:

Package Name connect-gzip-static
Version 2.1.1
Description gzip/brotli static middleware for connect - serves compressed files if they exist, falls through to connect-static if they dont
Released Date 2017-08-27T00:02:02.574Z
Published by pirxpilot
How to Learn https://www.npmjs.com/package/connect-gzip-static/tutorial