# 使用 npm 安装 astro

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

## 安装

```sh
sudo av install npm:astro
```

其他安装命令:

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

- npm (100%):

```sh
npm install -g astro
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:astro
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/astro>
- **版本:** 7.1.6
- **来源摘要:** Astro is a modern site builder with web best practices, performance, and DX front-of-mind.
- **主页:** <https://astro.build>
- **仓库:** <https://github.com/withastro/astro>
- **上游文档:** <https://astro.build>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/astro/-/astro-7.1.6.tgz>
- **问题跟踪器:** <https://github.com/withastro/astro/issues>
- **发布时间:** 2026-07-29T14:21:53.353Z
- **最后更新:** 2026-07-29T14:21:53.353Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- astro (cli)

## 依赖

- @astrojs/compiler-rs
- @astrojs/internal-helpers
- @astrojs/markdown-satteri
- @astrojs/telemetry
- @capsizecss/unpack
- @clack/prompts
- @oslojs/encoding
- @rollup/pluginutils
- am-i-vibing
- aria-query
- axobject-query
- ci-info
- clsx
- common-ancestor-path
- cookie
- devalue
- diff
- dset
- es-module-lexer
- esbuild
- flattie
- fontace
- get-tsconfig
- github-slugger
- html-escaper
- http-cache-semantics
- js-yaml
- jsonc-parser
- magic-string
- magicast
- mrmime
- neotraverse
- obug
- p-limit
- p-queue
- package-manager-detector
- piccolore
- picomatch
- semver
- shiki
- smol-toml
- svgo
- tinyclip
- tinyexec
- tinyglobby
- ultrahtml
- unifont
- unstorage
- vite
- vitefu
- xxhash-wasm
- yargs-parser
- zod

## 构建依赖

- @astrojs/check
- @astrojs/markdown-remark
- @playwright/test
- @types/aria-query
- @types/html-escaper
- @types/http-cache-semantics
- @types/js-yaml
- @types/parse-srcset
- @types/picomatch
- @types/semver
- @types/yargs-parser
- astro-scripts
- cheerio
- eol
- expect-type
- fs-fixture
- hono
- node-mocks-http
- parse-srcset
- rehype-autolink-headings
- rehype-slug
- rehype-toc
- remark-code-titles
- sass
- typescript
- undici
- vitest

## 安装行为

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

## 版本和新鲜度

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

## 安全说明

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


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Alpha: 7.0.0-alpha.2, Beta: 7.0.0-beta.6, Experimental 10745: 0.0.0-10745-20240410180016, Experimental 404 Trailing Slash: 0.0.0-404-trailing-slash-20231117145629, Experimental 9591: 0.0.0-9591-20240103143428, Experimental 9624: 0.0.0-9624-20240105191325, Experimental 9685: 0.0.0-9685-20240112193246, Experimental Actions: 0.0.0-actions-20240507170618, Experimental Actions Bun Workaround: 0.0.0-actions-bun-workaround-20240827210959, Experimental Adapter Sessions: 0.0.0-adapter-sessions-20250207124921, Experimental Add Stable: 0.0.0-add-stable-20231208215901, Experimental Allow Cc: 0.0.0-allow-cc-20240222155628, Experimental Alpine Scripts: 0.0.0-alpine-scripts-20250121133658, Experimental Assets Uint8array: 0.0.0-assets-uint8array-20231109073138, Experimental Assets Vitest: 0.0.0-assets-vitest-20240422184742, Experimental Astro Content Fix: 0.0.0-astro-content-fix-20240207175526, Experimental Astro Env: 0.0.0-astro-env-20240522153443, Experimental Astro URL Fix: 0.0.0-astro-url-fix-20241011143901, Experimental Astroenv Dev: 0.0.0-astroenv-dev-20241206160513, Experimental Atomic Writes: 0.0.0-atomic-writes-20241212091949, Experimental Audits Ui: 0.0.0-audits-ui-20240223144827, Experimental Cc Hmr: 0.0.0-cc-hmr-20240205141934, Experimental Cc Invalid: 0.0.0-cc-invalid-20240417202858, Experimental Cc Preserve Cache: 0.0.0-cc-preserve-cache-20240502141405
- **Version Count:** 1,363
- **Maintainers:** fredkschott, matthewp
- **Publisher:** GitHub Actions
- **Engines:** Node: >=22.12.0, npm: >=9.6.5, Pnpm: >=7.1.0
- **Peer Dependencies:** @astrojs/markdown-remark
- **Optional Dependencies:** sharp
- **Funding:** <https://opencollective.com/astrodotbuild>
- **Integrity:** sha512-83x9rYbHazMaZkYrAFRVZXSQx2moFkz0F7cjTDUF3GWfS0a3p2vZXG1ZdhV86rStHApQCodBJW+XTD37xISIrQ==
- **Shasum:** 332400bea0354d3c56a34fad2fe6fc86849dc1a2
- **Unpacked Size:** 2,890,335
- **File Count:** 0
- **Created At:** 2021-03-13T14:19:42.582Z
- **Latest Published At:** 2026-07-29T14:21:53.353Z
- **Modified At:** 2026-07-29T14:21:53.754Z

## 其他软件包管理器记录

- winget - Astronomer.Astro: normalized package name match | Windows Package Manager source index: Astronomer.Astro from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched curated package taxonomy and local package facts.
- [ava](https://pkg.so/zh-hans/npm/ava/) - Local package facts share a topical domain. Shared terms: ci-info, cli, common, http, info.
- [changesets-gitlab](https://pkg.so/zh-hans/npm/changesets-gitlab/) - Both packages work with overlapping file formats or content types. Shared terms: cli, database, get, http, markdown.
- [ajv-cmd](https://pkg.so/zh-hans/npm/ajv-cmd/) - Local package facts share a topical domain. Shared terms: cli, compiler, esbuild, http, networking.
- [astro](https://pkg.so/zh-hans/brew/astro/) - Same normalized package name exists in another local package ecosystem.

## 来源

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