How to Install mock-res NPM Packages on Ubuntu / Debian

How to Install mock-res software package in NPM Packages

mock-res : Mocks node.js http.ServerResponse. See also `mock-req`.. You can installing mock-res 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 mock-res
$ sudo npm install -g mock-res

If want to update the mock-res package execute the command as below,

$ sudo npm update mock-res

Update package globally,

$ npm install -g mock-res

Git clone:

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

mock-res@0.5.0 /usr/lib/node_modules/mock-res

How to remove mock-res package :

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

$ sudo npm uninstall mock-res

Basic Information of mock-res NPM Package:

Package Name mock-res
Version 0.5.0
Description Mocks node.js http.ServerResponse. See also `mock-req`.
Released Date 2017-07-07T03:46:33.183Z
Published by diachedelic
How to Learn https://www.npmjs.com/package/mock-res/tutorial