# 使用 npm 安装 critical

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

## 安装

```sh
sudo av install npm:critical
```

其他安装命令:

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

- npm (100%):

```sh
npm install -g critical
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:critical
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/critical>
- **版本:** 8.0.0
- **来源摘要:** Extract & Inline Critical-path CSS from HTML
- **仓库:** addyosmani/critical
- **许可证:** Apache-2.0
- **源码归档:** <https://registry.npmjs.org/critical/-/critical-8.0.0.tgz>
- **发布时间:** 2026-05-17T10:20:55.977Z
- **最后更新:** 2026-05-17T10:20:55.977Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- critical (cli)
- critical (别名)

## 依赖

- @adobe/css-tools
- async-traverse-tree
- clean-css
- common-tags
- css-url-parser
- data-uri-to-buffer
- debug
- find-up
- globby
- got
- group-args
- indent-string
- inline-critical
- is-glob
- joi
- lodash
- lodash-es
- make-dir
- meow
- oust
- p-all
- penthouse-esm
- picocolors
- plugin-error
- postcss
- postcss-discard
- postcss-image-inliner
- postcss-url
- replace-ext
- slash
- tempy
- through2
- vinyl

## 构建依赖

- @vitest/coverage-v8
- async
- finalhandler
- get-port
- nock
- normalize-newline
- serve-static
- stream-array
- stream-assert
- vinyl-source-stream
- vite-plus

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 8.0.0
- 管理器更新时间: 2026-05-17
- 本地数据: OK
- 信息: No upstream repository was available in local package data.

## 安全说明

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


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Latest: 8.0.0, Next: 2.0.0-27, Prev: 1.3.10
- **Version Count:** 112
- **Maintainers:** bezoerb, sindresorhus, addyosmani
- **Publisher:** bezoerb
- **Engines:** Node: >=22.13.0
- **Integrity:** sha512-e75N/LvuowwU6AkMB12iMjp08f6DlqGb0sJaTOnjJhRSuaoq/AFmNg/sNMV1E1pyQwC+uJz4hiHN46GKuABZaQ==
- **Shasum:** fe4af30b79d7b30037329b80dc27766141ec0db0
- **Unpacked Size:** 95,279
- **File Count:** 0
- **Created At:** 2014-06-28T17:43:52.164Z
- **Latest Published At:** 2026-05-17T10:20:55.977Z
- **Modified At:** 2026-05-17T10:20:56.119Z


## 相关链接

- [Web development packages](https://pkg.so/zh-hans/web-dev-tools/) - Matched curated package taxonomy and local package facts.
- [inline-critical](https://pkg.so/zh-hans/npm/inline-critical/) - Local package facts share a topical domain. Shared terms: adobe, clean, clean-css, cli, critical.
- [extract-react-intl-messages](https://pkg.so/zh-hans/npm/extract-react-intl-messages/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, extract, frontend.
- [prettier-eslint-cli](https://pkg.so/zh-hans/npm/prettier-eslint-cli/) - Local package facts share a topical domain. Shared terms: cli, common, common-tags, developer, developer-tools.

## 来源

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