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

How to Install mock-require software package in NPM Packages

mock-require : Simple, intuitive mocking of Node.js modules.. You can installing mock-require 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-require
$ sudo npm install -g mock-require

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

$ sudo npm update mock-require

Update package globally,

$ npm install -g mock-require

Git clone:

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

mock-require@2.0.2 /usr/lib/node_modules/mock-require

How to remove mock-require package :

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

$ sudo npm uninstall mock-require

Basic Information of mock-require NPM Package:

Package Name mock-require
Version 2.0.2
Description Simple, intuitive mocking of Node.js modules.
Released Date 2017-04-04T13:48:55.798Z
Published by boblauer
How to Learn https://www.npmjs.com/package/mock-require/tutorial