How to Install sinon NPM Packages on Ubuntu / Debian

How to Install sinon software package in NPM Packages

sinon : JavaScript test spies, stubs and mocks.. You can installing sinon 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 sinon
$ sudo npm install -g sinon

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

$ sudo npm update sinon

Update package globally,

$ npm install -g sinon

Git clone:

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

sinon@4.1.2 /usr/lib/node_modules/sinon

How to remove sinon package :

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

$ sudo npm uninstall sinon

Basic Information of sinon NPM Package:

Package Name sinon
Version 4.1.2
Description JavaScript test spies, stubs and mocks.
Released Date 2017-11-07T17:20:36.025Z
Published by fatso83
How to Learn https://www.npmjs.com/package/sinon/tutorial