# Install vitest with npm

Next generation testing framework powered by Vite. Version 4.1.9 via npm; verified 2026-06-15.

## Install

```sh
sudo av install npm:vitest
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g vitest
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:vitest
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/vitest>
- **Version:** 4.1.9
- **Source summary:** Next generation testing framework powered by Vite
- **Homepage:** <https://vitest.dev>
- **Repository:** <https://github.com/vitest-dev/vitest>
- **Upstream docs:** <https://vitest.dev>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/vitest/-/vitest-4.1.9.tgz>
- **Issue tracker:** <https://github.com/vitest-dev/vitest/issues>
- **Published:** 2026-06-15T07:23:00.326Z
- **Last updated:** 2026-06-15T07:23:00.326Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- vitest (cli)
- vitest (alias)

## Dependencies

- @vitest/expect
- @vitest/mocker
- @vitest/pretty-format
- @vitest/runner
- @vitest/snapshot
- @vitest/spy
- @vitest/utils
- es-module-lexer
- expect-type
- magic-string
- obug
- pathe
- picomatch
- std-env
- tinybench
- tinyexec
- tinyglobby
- tinyrainbow
- vite
- why-is-node-running

## Build dependencies

- @antfu/install-pkg
- @bomb.sh/tab
- @edge-runtime/vm
- @jridgewell/trace-mapping
- @opentelemetry/api
- @sinonjs/fake-timers
- @types/estree
- @types/istanbul-lib-coverage
- @types/istanbul-reports
- @types/jsdom
- @types/node
- @types/picomatch
- @types/prompts
- @types/sinonjs__fake-timers
- acorn
- acorn-walk
- birpc
- cac
- empathic
- flatted
- happy-dom
- jsdom
- local-pkg
- mime
- prompts
- strip-literal
- tinyhighlight
- ws

## Install behavior

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

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 4.1.9
- Package-manager updated: 2026-06-15
- Local data: ok
- Upstream repository: https://github.com/vitest-dev/vitest
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for vitest. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** V3: 3.2.6, Beta: 5.0.0-beta.5, Latest: 4.1.9
- **Version Count:** 473
- **Maintainers:** ariperkkio, antfu, hiogawa, oreanno, yyx990803
- **Publisher:** GitHub Actions
- **Engines:** Node: ^20.0.0 || ^22.0.0 || >=24.0.0
- **Peer Dependencies:** @edge-runtime/vm, @opentelemetry/api, @types/node, @vitest/browser-playwright, @vitest/browser-preview, @vitest/browser-webdriverio, @vitest/coverage-istanbul, @vitest/coverage-v8, @vitest/ui, happy-dom, jsdom, vite
- **Funding:** <https://opencollective.com/vitest>
- **Integrity:** sha512-nE3/LEyc0z87uHYLZebqCUOaJr2hdtuPp7BQ4BosVFnfltxgAvMG08NyrSGlPpOUWvR27c5flSmYFTNr78L9GQ==
- **Shasum:** 98f22fbd70e2a18c4a92bb20624bc92e5dfac5f3
- **Unpacked Size:** 1,905,450
- **File Count:** 0
- **Created At:** 2021-12-03T13:34:59.705Z
- **Latest Published At:** 2026-06-15T07:23:00.326Z
- **Modified At:** 2026-06-15T08:53:15.265Z


## Related links

- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched curated package taxonomy and local package facts.
- [vike](https://www.automicvault.com/pkg/npm/vike/) - Both packages touch the same language runtime or ecosystem. Shared terms: es-module-lexer, framework, lexer, magic, magic-string.
- [storybook](https://www.automicvault.com/pkg/npm/storybook/) - Local metadata places this package in an adjacent workflow. Shared terms: env, expect, jest, next, spy.
- [vitest-preview](https://www.automicvault.com/pkg/npm/vitest-preview/) - Package names and metadata indicate a similar tool family. Shared terms: testing, utils, vite, vitest.

## Sources

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