How to Install nock NPM Packages on Ubuntu / Debian

How to Install nock software package in NPM Packages

nock : HTTP Server mocking for Node.js. You can installing nock 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 nock
$ sudo npm install -g nock

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

$ sudo npm update nock

Update package globally,

$ npm install -g nock

Git clone:

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

nock@9.1.2 /usr/lib/node_modules/nock

How to remove nock package :

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

$ sudo npm uninstall nock

Basic Information of nock NPM Package:

Package Name nock
Version 9.1.2
Description HTTP Server mocking for Node.js
Released Date 2017-11-24T21:53:12.220Z
Published by nockbot
How to Learn https://www.npmjs.com/package/nock/tutorial