# 安装 mastra

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

## 安装

```sh
sudo av install npm:mastra
```

其他安装命令:

### Portable and language managers

- npm (100%):

```sh
npm install -g mastra
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:mastra
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/mastra>
- **版本:** 1.10.0
- **来源摘要:** cli for mastra
- **主页:** <https://mastra.ai>
- **仓库:** <https://github.com/mastra-ai/mastra>
- **上游文档:** <https://mastra.ai>
- **许可证:** Apache-2.0
- **源码归档:** <https://registry.npmjs.org/mastra/-/mastra-1.10.0.tgz>
- **问题跟踪器:** <https://github.com/mastra-ai/mastra/issues>
- **发布时间:** 2026-05-20T22:46:24.145Z
- **更新:** 2026-05-20T22:46:24.145Z
- **生成来源:** 2026-05-26T22:45:13+00:00

## 可执行文件

- mastra (cli): dist/index.js
- mastra (别名)

## 依赖

- @babel/parser
- @babel/types
- @clack/prompts
- @expo/devcert
- @mastra/deployer
- @mastra/loggers
- archiver
- commander
- dotenv
- execa
- fs-extra
- get-port
- local-pkg
- openapi-fetch
- picocolors
- posthog-node
- semver
- serve
- serve-handler
- shell-quote
- strip-json-comments
- tinyglobby
- yocto-spinner

## 构建依赖

- @commander-js/extra-typings
- @internal/lint
- @internal/playground
- @internal/types-builder
- @mastra/core
- @types/archiver
- @types/fs-extra
- @types/node
- @types/semver
- @types/serve-handler
- @types/shell-quote
- @vitest/coverage-v8
- @vitest/ui
- eslint
- memfs
- rollup
- tsup
- type-fest
- typescript
- vitest

## 安装行为

- post-install 钩子: 未定义

## 新鲜度

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

## 安全说明

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


## 相关链接

- [@mastra/mcp-docs-server](https://www.automicvault.com/pkg/npm/mastra-mcp-docs-server/) - Package names and metadata indicate a similar tool family. Shared terms: local, local-pkg, mastra, pkg.
- [oh-my-openagent](https://www.automicvault.com/pkg/npm/oh-my-openagent/) - Both packages touch the same language runtime or ecosystem. Shared terms: agent, agents, ai, clack, commander.
- [oh-my-opencode](https://www.automicvault.com/pkg/npm/oh-my-opencode/) - Both packages touch the same language runtime or ecosystem. Shared terms: agent, agents, ai, clack, commander.
- [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
