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

How to Install fetch-mock software package in NPM Packages

fetch-mock : Mock http requests made using fetch (or isomorphic-fetch). You can installing fetch-mock 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 fetch-mock
$ sudo npm install -g fetch-mock

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

$ sudo npm update fetch-mock

Update package globally,

$ npm install -g fetch-mock

Git clone:

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

fetch-mock@5.13.1 /usr/lib/node_modules/fetch-mock

How to remove fetch-mock package :

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

$ sudo npm uninstall fetch-mock

Basic Information of fetch-mock NPM Package:

Package Name fetch-mock
Version 5.13.1
Description Mock http requests made using fetch (or isomorphic-fetch)
Released Date 2017-10-09T21:45:37.168Z
Published by wheresrhys
How to Learn https://www.npmjs.com/package/fetch-mock/tutorial