# Install mocha

simple, flexible, fun test framework. Version 11.7.6 via npm; verified 2026-05-21.

## Install

```sh
sudo av install npm:mocha
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g mocha
```

  Evidence: local npm package metadata

## Package Facts

- **Package key:** npm:mocha
- **Package manager:** npm
- **Package manager URL:** <https://www.npmjs.com/package/mocha>
- **Version:** 11.7.6
- **Source summary:** simple, flexible, fun test framework
- **Homepage:** <https://mochajs.org/>
- **Repository:** <https://github.com/mochajs/mocha>
- **Upstream docs:** <https://mochajs.org/>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/mocha/-/mocha-11.7.6.tgz>
- **Issue tracker:** <https://github.com/mochajs/mocha/issues/>
- **Published:** 2026-05-21T11:11:59.551Z
- **Last updated:** 2026-05-21T11:11:59.551Z
- **Generated:** 2026-06-10T07:18:26+00:00

## Executables

- _mocha (cli)
- mocha (cli)
- mocha (alias)

## Dependencies

- browser-stdout
- chokidar
- debug
- diff
- escape-string-regexp
- find-up
- glob
- he
- is-path-inside
- js-yaml
- log-symbols
- minimatch
- ms
- picocolors
- serialize-javascript
- strip-json-comments
- supports-color
- workerpool
- yargs
- yargs-parser
- yargs-unparser

## Build Dependencies

- @11ty/eleventy
- @11ty/eleventy-plugin-inclusive-language
- @eslint/js
- @mocha/docdash
- @rollup/plugin-alias
- @rollup/plugin-commonjs
- @rollup/plugin-json
- @rollup/plugin-multi-entry
- @rollup/plugin-node-resolve
- @test/esm-only-loader
- @types/node
- @types/yargs
- @vscode/windows-process-tree
- chai
- coffeescript
- cross-env
- eslint
- eslint-plugin-n
- fail-on-errors-webpack-plugin
- globals
- http-server
- installed-check
- jsdoc
- jsdoc-ts-utils
- karma
- karma-chrome-launcher
- karma-mocha
- karma-mocha-reporter
- karma-sauce-launcher
- knip
- markdown-it
- markdown-it-anchor
- markdown-it-attrs
- markdown-it-emoji
- markdown-it-prism
- markdown-toc
- markdownlint-cli
- needle
- npm-run-all2
- nyc
- pidtree
- prettier
- remark
- remark-github
- remark-inline-links
- rewiremock
- rimraf
- rollup
- rollup-plugin-node-globals
- rollup-plugin-polyfill-node
- rollup-plugin-visualizer
- semver
- sinon
- typescript
- unexpected
- unexpected-eventemitter
- unexpected-map
- unexpected-set
- unexpected-sinon
- uslug
- webpack
- webpack-cli

## Install Behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-06-10
- Package-manager version: 11.7.6
- Package-manager updated: 2026-05-21
- Local data status: ok
- Upstream repository: https://github.com/mochajs/mocha
- info: No cached GitHub release or tag data was available.

## Notes de sécurité

Aucun manifest local de gestion des secrets correspondant n'a été trouvé pour mocha. Les métadonnées de paquet Nucleus restent publiées ici afin que la couverture future dispose d'une URL stable.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 11.7.6, Next: 12.0.0-beta-9.5
- **Version Count:** 239
- **Maintainers:** joshuakgoldberg, mark-wiemer
- **Author:** TJ Holowaychuk
- **Publisher:** joshuakgoldberg
- **Engines:** Node: ^18.18.0 || ^20.9.0 || >=21.1.0
- **Integrity:** sha512-nS9xOGbw2I3cjCpxwZAEJ9xK9lmJ08vEkQvLtz4du9ZrF9UrjRpeJGiIgl2Z+Qs++pmB4ecDe48Fwsh+j+j7xA==
- **Shasum:** ebbe22989d04cbb9424a36307320476624c41a33
- **Unpacked Size:** 2,309,588
- **File Count:** 0
- **Created At:** 2011-11-08T23:08:55.982Z
- **Latest Published At:** 2026-05-21T11:11:59.551Z
- **Modified At:** 2026-06-07T02:29:39.358Z

## Other Package-Manager Records

- Debian apt - mocha - 10.7.2+ds1+~cs33.1.11-2: normalized package name match | Debian stable package indexes: mocha from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | simple, flexible, fun test framework - Node.js module | https://mochajs.org
- Nix - mocha: normalized package name match | nixpkgs package indexes: pkgs/by-name/mo/mocha/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - mocha - 10.4.0+ds1+~cs33.1.8-1: normalized package name match | Ubuntu 24.04 LTS package indexes: mocha from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | simple, flexible, fun test framework - Node.js module | https://mochajs.org


## Related Links

- [Text processing packages](https://www.automicvault.com/fr/pkg/text-processing-tools/) - Matched curated package taxonomy and local package facts.
- [testem](https://www.automicvault.com/fr/pkg/npm/testem/) - Both packages touch the same language runtime or ecosystem. Shared terms: browser, chokidar, glob, javascript, js-yaml.
- [esformatter](https://www.automicvault.com/fr/pkg/npm/esformatter/) - Both packages touch the same language runtime or ecosystem. Shared terms: color, comments, debug, glob, javascript.
- [ava](https://www.automicvault.com/fr/pkg/npm/ava/) - Local metadata places this package in an adjacent workflow. Shared terms: ava, debug, jest, mocha, path.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
