# 使用 npm 安装 shadcn

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

## 安装

```sh
sudo av install npm:shadcn
```

其他安装命令:

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

- npm (100%):

```sh
npm install -g shadcn
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:shadcn
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/shadcn>
- **版本:** 4.14.1
- **来源摘要:** Add components to your apps.
- **主页:** <https://github.com/shadcn-ui/ui#readme>
- **仓库:** <https://github.com/shadcn-ui/ui>
- **上游文档:** <https://github.com/shadcn-ui/ui#readme>
- **许可证:** MIT
- **问题跟踪器:** <https://github.com/shadcn-ui/ui/issues>
- **发布时间:** 2026-07-23T16:02:38.057Z
- **最后更新:** 2026-07-23T16:02:38.057Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- shadcn (cli)

## 安装行为

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

## 版本和新鲜度

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

## 安全说明

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


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Beta: 0.0.0-beta.01b72a3, Canary: 4.2.0-canary.0, Latest: 4.14.1, Rc: 4.10.0-rc.674ae44
- **Version Count:** 291
- **Maintainers:** shadcn, npm_bot_shadcn
- **Author:** shadcn
- **File Count:** 0
- **Created At:** 2024-07-09T11:01:29.385Z
- **Latest Published At:** 2026-07-23T16:02:38.057Z
- **Modified At:** 2026-07-23T16:02:38.057Z

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

- Nix - shadcn: normalized package name match | nixpkgs package indexes: pkgs/by-name/sh/shadcn/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Web development packages](https://pkg.so/zh-hans/web-dev-tools/) - Matched curated package taxonomy and local package facts.
- [shadcn-svelte](https://pkg.so/zh-hans/npm/shadcn-svelte/) - Package names and metadata indicate a similar tool family. Shared terms: add, apps, cli, components, developer.
- [shadcn-ui](https://pkg.so/zh-hans/npm/shadcn-ui/) - Package names and metadata indicate a similar tool family. Shared terms: add, apps, cli, components, developer.
- [shadcn-vue](https://pkg.so/zh-hans/npm/shadcn-vue/) - Package names and metadata indicate a similar tool family. Shared terms: add, apps, cli, components, developer.
- [shadcn](https://pkg.so/zh-hans/brew/shadcn/) - 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
