# 使用 npm 安装 preact-cli

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

## 安装

```sh
sudo av install npm:preact-cli
```

其他安装命令:

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

- npm (100%):

```sh
npm install -g preact-cli
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:preact-cli
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/preact-cli>
- **版本:** 3.5.1
- **来源摘要:** Start building a Preact Progressive Web App in seconds.
- **主页:** <https://github.com/preactjs/preact-cli>
- **仓库:** <https://github.com/preactjs/preact-cli>
- **上游文档:** <https://github.com/preactjs/preact-cli>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/preact-cli/-/preact-cli-3.5.1.tgz>
- **问题跟踪器:** <https://github.com/preactjs/preact-cli/issues>
- **发布时间:** 2024-01-27T12:23:00.335Z
- **最后更新:** 2024-01-27T12:23:00.335Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- preact (cli)
- preact (别名)

## 依赖

- @babel/core
- @babel/plugin-proposal-class-properties
- @babel/plugin-proposal-decorators
- @babel/plugin-proposal-object-rest-spread
- @babel/plugin-syntax-dynamic-import
- @babel/plugin-transform-object-assign
- @babel/plugin-transform-react-jsx
- @babel/preset-env
- @babel/preset-typescript
- @preact/async-loader
- @prefresh/babel-plugin
- @prefresh/webpack
- @types/webpack
- autoprefixer
- babel-esm-plugin
- babel-loader
- babel-plugin-macros
- babel-plugin-transform-react-remove-prop-types
- browserslist
- compression-webpack-plugin
- console-clear
- copy-webpack-plugin
- critters-webpack-plugin
- cross-spawn-promise
- css-loader
- dotenv
- ejs-loader
- envinfo
- esm
- file-loader
- fork-ts-checker-webpack-plugin
- get-port
- gittar
- glob
- html-webpack-exclude-assets-plugin
- html-webpack-plugin
- ip
- isomorphic-unfetch
- kleur
- loader-utils
- mini-css-extract-plugin
- minimatch
- native-url
- optimize-css-assets-webpack-plugin
- ora
- pnp-webpack-plugin
- postcss
- postcss-load-config
- postcss-loader
- progress-bar-webpack-plugin
- promise-polyfill
- prompts
- raw-loader
- react-refresh
- rimraf
- sade
- size-plugin
- source-map
- source-map-loader
- stack-trace
- style-loader
- terser-webpack-plugin
- update-notifier
- url-loader
- validate-npm-package-name
- webpack
- webpack-bundle-analyzer
- webpack-dev-server
- webpack-fix-style-only-entries
- webpack-manifest-plugin
- webpack-merge
- webpack-plugin-replace
- which
- workbox-cacheable-response
- workbox-core
- workbox-precaching
- workbox-routing
- workbox-strategies
- workbox-webpack-plugin

## 构建依赖

- @types/express
- @types/jest
- html-looks-like
- jest
- less
- less-loader
- p-retry
- polka
- preact
- preact-render-to-string
- preact-router
- puppeteer
- sass
- sass-loader
- shelljs
- sirv
- stylus
- stylus-loader
- typescript

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 3.5.1
- 管理器更新时间: 2024-01-27
- 本地数据: OK
- 上游仓库: https://github.com/preactjs/preact-cli
- 警告: The package-manager record has not been updated in over a year.
- 信息: No cached GitHub release or tag data was available.

## 安全说明

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


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Latest: 3.5.1, Next: 4.0.0-next.6
- **Version Count:** 86
- **Maintainers:** rschristian, lukeed, harmony, marvinhagemeister, prateekbh, solarliner, preactjs, reznord, developit, jdecroock
- **Author:** The Preact CLI Authors
- **Publisher:** rschristian
- **Engines:** Node: >=12
- **Peer Dependencies:** less-loader, preact, preact-render-to-string, sass-loader, stylus-loader, typescript
- **Integrity:** sha512-6sRewJOtPAWkIVc+cycU4cjk9294stdh4hyw2ENpJ5N5lWJ8Y3r9r5Ly6Hmo5rzvcUq4cnlshMwTTwGq7ip/1w==
- **Shasum:** c0ab61e0004cbd74936c32c6bf50011f99bb58dc
- **Unpacked Size:** 159,769
- **File Count:** 0
- **Created At:** 2017-01-14T00:59:49.996Z
- **Latest Published At:** 2024-01-27T12:23:00.335Z
- **Modified At:** 2024-01-27T12:23:00.600Z


## 相关链接

- [Web development packages](https://www.automicvault.com/zh-hans/pkg/web-dev-tools/) - Matched curated package taxonomy and local package facts.
- [react-static](https://www.automicvault.com/zh-hans/pkg/npm/react-static/) - Local package facts share a topical domain. Shared terms: autoprefixer, babel, babel-loader, babel-plugin-macros, babel-plugin-transform-react-remove-prop-types.
- [laravel-mix](https://www.automicvault.com/zh-hans/pkg/npm/laravel-mix/) - Local package facts share a topical domain. Shared terms: autoprefixer, babel, babel-loader, core, dynamic.
- [microbundle](https://www.automicvault.com/zh-hans/pkg/npm/microbundle/) - Local package facts share a topical domain. Shared terms: async, autoprefixer, babel, babel-plugin-macros, class.

## 来源

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