How to Install restify-cors-middleware NPM Packages on Ubuntu / Debian

How to Install restify-cors-middleware software package in NPM Packages

restify-cors-middleware : Common middlewares for all Node.js web services. You can installing restify-cors-middleware 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 restify-cors-middleware
$ sudo npm install -g restify-cors-middleware

If want to update the restify-cors-middleware package execute the command as below,

$ sudo npm update restify-cors-middleware

Update package globally,

$ npm install -g restify-cors-middleware

Git clone:

$ sudo  git clone https://github.com/rektide/restify-cors-middleware.git
$ sudo  npm install -g ./restify-cors-middleware

restify-cors-middleware@1.0.1 /usr/lib/node_modules/restify-cors-middleware

How to remove restify-cors-middleware package :

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

$ sudo npm uninstall restify-cors-middleware

Basic Information of restify-cors-middleware NPM Package:

Package Name restify-cors-middleware
Version 1.0.1
Description Common middlewares for all Node.js web services
Released Date 2017-07-31T05:26:01.980Z
Published by tabdigital
How to Learn https://www.npmjs.com/package/restify-cors-middleware/tutorial