mocha : simple, flexible, fun test framework. You can installing mocha 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 mocha $ sudo npm install -g mocha
If want to update the mocha package execute the command as below,
$ sudo npm update mocha
Update package globally,
$ npm install -g mocha
$ sudo git clone https://github.com/rektide/mocha.git
$ sudo npm install -g ./mocha
mocha@4.0.1 /usr/lib/node_modules/mocha
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall mocha
| Package Name | mocha |
| Version | 4.0.1 |
| Description | simple, flexible, fun test framework |
| Released Date | 2017-10-06T02:14:21.598Z |
| Published by | boneskull |
| How to Learn | https://www.npmjs.com/package/mocha/tutorial |