How to Install cors NPM Packages on Ubuntu / Debian

How to Install cors software package in NPM Packages

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

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

$ sudo npm update cors

Update package globally,

$ npm install -g cors

Git clone:

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

cors@2.8.4 /usr/lib/node_modules/cors

How to remove cors package :

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

$ sudo npm uninstall cors

Basic Information of cors NPM Package:

Package Name cors
Version 2.8.4
Description Node.js CORS middleware
Released Date 2017-07-13T02:50:19.018Z
Published by dougwilson
How to Learn https://www.npmjs.com/package/cors/tutorial