# 使用 npm 安装 metro

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

## 安装

```sh
sudo av install npm:metro
```

其他安装命令:

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

- npm (100%):

```sh
npm install -g metro
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:metro
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/metro>
- **版本:** 0.84.4
- **来源摘要:** 🚇 The JavaScript bundler for React Native.
- **主页:** <https://github.com/facebook/metro#readme>
- **仓库:** <https://github.com/facebook/metro>
- **上游文档:** <https://github.com/facebook/metro#readme>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/metro/-/metro-0.84.4.tgz>
- **问题跟踪器:** <https://github.com/facebook/metro/issues>
- **发布时间:** 2026-04-30T11:42:34.764Z
- **最后更新:** 2026-04-30T11:42:34.764Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- metro (cli)
- metro (别名)

## 依赖

- @babel/code-frame
- @babel/core
- @babel/generator
- @babel/parser
- @babel/template
- @babel/traverse
- @babel/types
- accepts
- ci-info
- connect
- debug
- error-stack-parser
- flow-enums-runtime
- graceful-fs
- hermes-parser
- image-size
- invariant
- jest-worker
- jsc-safe-url
- lodash.throttle
- metro-babel-transformer
- metro-cache
- metro-cache-key
- metro-config
- metro-core
- metro-file-map
- metro-resolver
- metro-runtime
- metro-source-map
- metro-symbolicate
- metro-transform-plugins
- metro-transform-worker
- mime-types
- nullthrows
- serialize-error
- source-map
- throat
- ws
- yargs

## 构建依赖

- @babel/plugin-transform-flow-strip-types
- @babel/plugin-transform-modules-commonjs
- @babel/plugin-transform-runtime
- @react-native/babel-preset
- @react-native/metro-babel-transformer
- @types/ws
- @types/yargs
- babel-jest
- dedent
- jest-snapshot
- jest-snapshot-serializer-raw
- metro-babel-register
- metro-memory-fs
- mock-req
- mock-res
- selfsigned
- stack-trace

## 安装行为

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

## 版本和新鲜度

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

## 安全说明

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


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** 0.76 Stable: 0.76.9, 0.80 Stable: 0.80.12, 0.81 Stable: 0.81.5, 0.83 Stable: 0.83.7, Alpha: 0.81.0-alpha.2, Latest: 0.84.4
- **Version Count:** 183
- **Maintainers:** fb, metro-bot
- **Publisher:** GitHub Actions
- **Engines:** Node: ^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0
- **Integrity:** sha512-8ETTubqfD6ornDy2zYDvRcKnVDOXdFJsjetYDBsY4oAsb6NJkiwFR+FaMESyGppFmQUyBQA4H4sFGxzcQSGtFA==
- **Shasum:** dfcf92b3bcadce7cafaf1a1fa231b6490dfae78c
- **Unpacked Size:** 929,383
- **File Count:** 0
- **Created At:** 2011-10-12T03:27:14.232Z
- **Latest Published At:** 2026-04-30T11:42:34.764Z
- **Modified At:** 2026-04-30T11:42:35.031Z


## 相关链接

- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched curated package taxonomy and local package facts.
- [gatsby](https://www.automicvault.com/zh-hans/pkg/npm/gatsby/) - Local package facts share a topical domain. Shared terms: babel, cache, code, code-frame, core.
- [react-native-tvos](https://www.automicvault.com/zh-hans/pkg/npm/react-native-tvos/) - Local package facts share a topical domain. Shared terms: babel, core, enums, flow, flow-enums-runtime.
- [metro-symbolicate](https://www.automicvault.com/zh-hans/pkg/npm/metro-symbolicate/) - Package names and metadata indicate a similar tool family. Shared terms: enums, flow, flow-enums-runtime, invariant, metro.

## 来源

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