How to Install compression NPM Packages on Ubuntu / Debian

How to Install compression software package in NPM Packages

compression : Node.js compression middleware. You can installing compression 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 compression
$ sudo npm install -g compression

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

$ sudo npm update compression

Update package globally,

$ npm install -g compression

Git clone:

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

compression@1.7.1 /usr/lib/node_modules/compression

How to remove compression package :

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

$ sudo npm uninstall compression

Basic Information of compression NPM Package:

Package Name compression
Version 1.7.1
Description Node.js compression middleware
Released Date 2017-09-27T05:10:20.820Z
Published by dougwilson
How to Learn https://www.npmjs.com/package/compression/tutorial