# 安装 vitest

查看 vitest 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### Portable and language managers

- npm (100%):

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

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:vitest
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/vitest>
- **版本:** 4.1.7
- **来源摘要:** Next generation testing framework powered by Vite
- **主页:** <https://vitest.dev>
- **仓库:** <https://github.com/vitest-dev/vitest>
- **上游文档:** <https://vitest.dev>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/vitest/-/vitest-4.1.7.tgz>
- **问题跟踪器:** <https://github.com/vitest-dev/vitest/issues>
- **发布时间:** 2026-05-20T07:19:42.142Z
- **更新:** 2026-05-20T07:19:42.142Z
- **生成来源:** 2026-05-26T17:25:59+00:00

## 可执行文件

- vitest (cli): vitest.mjs
- vitest (别名)

## 依赖

- @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

## 构建依赖

- @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

## 安装行为

- post-install 钩子: 未定义

## 新鲜度

- 页面生成时间: 2026-05-26
- 管理器版本: 4.1.7
- 管理器更新时间: 2026-05-20
- 本地数据: ok
- 上游仓库: https://github.com/vitest-dev/vitest
- info: No cached GitHub release or tag data was available.

## 安全说明

没有找到 vitest 的匹配本地 radioisotope manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 相关链接

- [storybook](https://www.automicvault.com/pkg/npm/storybook/) - Local metadata places this package in an adjacent workflow. Shared terms: env, expect, jest, next, spy.
- [evalite](https://www.automicvault.com/pkg/npm/evalite/) - Local metadata places this package in an adjacent workflow. Shared terms: powered, runner, test, tinyrainbow, type.
- [@sveltejs/kit](https://www.automicvault.com/pkg/npm/sveltejs-kit/) - Local package facts share a topical domain. Shared terms: env, framework, magic, magic-string, string.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/)

## 来源

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