pnpm
仓库创建 2026年1月28日最近提交 1 个月前SkillHot 收录 20 天前
▸ 精选理由
能显著节省磁盘空间并避免幽灵依赖,适合 monorepo 与团队使用。
这个 Skill 做什么
高效且严格解析的 Node.js 包管理器,支持工作区与内容寻址存储。
管理 Node.js 依赖和 monorepo 工作区时用,速度快且更节省磁盘空间。它使用 content-addressable 的全局存储去重包,并默认强制严格的依赖解析,能避免“幽灵依赖”问题。配置以 pnpm-workspace.yaml(camelCase 键)和全局 config.yaml 为主,适合需要确定性构建和严格依赖管理的项目。
▸ 展开 SKILL.md 英文原文
Node.js package manager with strict dependency resolution. Use when running pnpm specific commands, configuring workspaces via pnpm-workspace.yaml, or managing dependencies with catalogs, patches, overrides, config dependencies, or the global virtual store.
5.7k
Stars
314
Forks
19
仓库内 Skill
+173
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/antfu/skills/main/skills/pnpm/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/antfu/skills/main/skills/pnpm/SKILL.md"SKILL.MD 节选查看完整文件 ↗
pnpm is a fast, disk space efficient package manager. It uses a content-addressable store to deduplicate packages across all projects on a machine, and enforces strict dependency resolution by default, preventing phantom dependencies. **Configuration model (important):** pnpm settings now live in `pnpm-workspace.yaml` (and the global `config.yaml`) using **camelCase** keys. `.npmrc` is used **only** for authentication/registry credentials, and the `pnpm` field of `package.json` is no longer read. When working in a pnpm project, check `pnpm-workspace.yaml` for settings/workspace structure and `.npmrc` only for auth. Always use `--frozen-lockfile` (or `pnpm ci`) in CI. > The skill is based o
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有