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

How to Install mock-req software package in NPM Packages

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

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

$ sudo npm update mock-req

Update package globally,

$ npm install -g mock-req

Git clone:

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

mock-req@0.2.0 /usr/lib/node_modules/mock-req

How to remove mock-req package :

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

$ sudo npm uninstall mock-req

Basic Information of mock-req NPM Package:

Package Name mock-req
Version 0.2.0
Description Mocks node.js `http.IncomingMessage` (a request). See also `mock-res`.
Released Date 2015-03-04T12:29:29.539Z
Published by diachedelic
How to Learn https://www.npmjs.com/package/mock-req/tutorial