# 使用 npm 安装 mastra

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

## 安装

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

其他安装命令:

### 便携式和语言管理器

- npm (100%):

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

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:mastra
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/mastra>
- **版本:** 1.20.1
- **来源摘要:** cli for mastra
- **主页:** <https://mastra.ai>
- **仓库:** <https://github.com/mastra-ai/mastra>
- **上游文档:** <https://mastra.ai>
- **许可证:** Apache-2.0
- **问题跟踪器:** <https://github.com/mastra-ai/mastra/issues>
- **发布时间:** 2026-07-23T10:03:09.717Z
- **最后更新:** 2026-07-23T10:03:09.717Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- mastra (cli)
- mastra (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.20.1
- 管理器更新时间: 2026-07-23
- 本地数据: OK
- 上游仓库: https://github.com/mastra-ai/mastra
- 信息: No cached GitHub release or tag data was available.

## 安全说明

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


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** 1.x Tester: 0.0.0-1.x-tester-20251106141102, A B Demo: 0.0.0-a-b-demo-20260526202724, A2a: 0.0.0-a2a-20250421213654, A2a Vnext: 0.0.0-a2a-vnext-20260424123427, Add Crumb Action: 0.0.0-add-crumb-action-20251028111500, Add Libsql Changeset: 0.0.0-add-libsql-changeset-20250910154739, Add Runtime Context To Openai Realtime: 0.0.0-add-runtime-context-to-openai-realtime-20250516201052, Add Save Score Validation On Stores: 0.0.0-add-save-score-validation-on-stores-20250911031242, Add Stepgraph To Run Exec Result: 0.0.0-add-stepgraph-to-run-exec-result-20251112113541, After Tool Execute: 0.0.0-afterToolExecute-20250415041527, Ag Example: 0.0.0-ag-example-20260516005230, Agent Chat Ui: 0.0.0-agent-chat-ui-20260305212602, Agent Error Handling: 0.0.0-agent-error-handling-20251023180025, Agent Learning Fetch Again: 0.0.0-agent-learning-fetch-again-20260701195212, Agui: 0.0.0-agui-20250501191909, Ai Sdk Network Text Delta: 0.0.0-ai-sdk-network-text-delta-20251017172601, Ai Sdk Workflow Route: 0.0.0-ai-sdk-workflow-route-20251010135341, Ai Telementry Ui: 0.0.0-ai-telementry-ui-20250908102126, Ai V5: 0.0.0-ai-v5-20250813235735, Allow To Pass A Mastra URL Instance: 0.0.0-allow-to-pass-a-mastra-url-instance-20251105224938, Alpha: 1.22.0-alpha.5, Alternative Angelfish F7665c: 0.0.0-alternative-angelfish-f7665c-20260119184917, Apricot Manager: 0.0.0-apricot-manager-20260327095430, Async Hooks Fix: 0.0.0-async-hooks-fix-20260405155845
- **Version Count:** 1,469
- **Maintainers:** abhiaiyer, smthomas, rase-, calcsam, nikaiyer, tylerbarnes, wardpeet
- **File Count:** 0
- **Created At:** 2024-09-21T20:36:31.862Z
- **Latest Published At:** 2026-07-23T10:03:09.717Z
- **Modified At:** 2026-07-23T10:03:09.717Z


## 相关链接

- [AI and agent packages](https://pkg.so/zh-hans/ai-agent-tools/) - Matched curated package taxonomy and local package facts.
- [ai-elements](https://pkg.so/zh-hans/npm/ai-elements/) - Local package facts share a topical domain. Shared terms: ai, cli, model, model-tools, models.
- [chatgpt](https://pkg.so/zh-hans/npm/chatgpt/) - Local package facts share a topical domain. Shared terms: ai, cli, model, model-tools, models.
- [genkit-cli](https://pkg.so/zh-hans/npm/genkit-cli/) - Local package facts share a topical domain. Shared terms: ai, cli, model, model-tools, models.

## 来源

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
