macOS
brew install corepacklocal Homebrew formula metadata
安装
brew install corepacklocal Homebrew formula metadata
nix profile install nixpkgs#corepacknixpkgs package indexes · pkgs/by-name/co/corepack/package.nix · 来源: api.github.com
sudo pacman -S corepackArch Linux sync databases · corepack · 来源: geo.mirror.pkgbuild.com
sudo zypper install corepack-defaultopenSUSE Tumbleweed package metadata · corepack-default · 来源: download.opensuse.org
概览
Package acting as bridge between Node projects and their package managers
历史
Corepack is a Node.js package-manager shim and version manager that bridges a project to the package manager version it declares. It is most associated with Yarn and pnpm workflows, where the package.json packageManager field can select the expected tool and version.
The nodejs/corepack repository was created in 2020. Its README describes Corepack as a zero-runtime-dependency Node.js script that lets projects use Yarn, npm, and pnpm without installing each package manager globally.
Corepack was distributed with Node.js from version 14.19.0 up to, but not including, 25.0.0. That bundling made it a notable piece of Node's package-management story even for users who never installed the standalone package directly.
Corepack adoption followed the rise of package-manager pinning in JavaScript projects. Instead of relying on whatever yarn or pnpm binary happened to be globally installed, a project could declare the package manager in package.json and let Corepack fetch or activate a compatible version.
Common usage is to enable Corepack, then run package-manager commands such as yarn install or pnpm install in a project. Corepack reads package.json metadata, resolves the intended package manager version, and manages cached package-manager binaries rather than acting as the dependency installer itself.
Corepack is package-nerd infrastructure about package managers themselves. It moved version pinning for Yarn and pnpm closer to the Node runtime and made the package.json packageManager field operational, which changed how distributions and CI images think about globally installed JavaScript package tools.
安全态势
infrastructure mutation or orchestration signal.
orange 风险 · 中 置信度 · infrastructure
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
package.json可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
corepack | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/nodejs/corepack
安装元数据
| 软件包键 | brew:corepack |
|---|---|
| 版本 | 0.35.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/corepack |
| 主页 | https://github.com/nodejs/corepack |
| 仓库 | https://github.com/nodejs/corepack |
| 上游文档 | https://github.com/nodejs/corepack#readme |
| 许可证 | MIT |
| 源码归档 | https://registry.npmjs.org/corepack/-/corepack-0.35.0.tgz |
| 最后更新 | 2026-05-15T21:25:02Z |
| Pulse | updated |
| 依赖 | node |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | corepack |
| Version Scheme | 0 |
| Revision | 0 |
| Conflicts With |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
corepack
nix profile install nixpkgs#corepackcorepack 0.34.6-1
Zero-runtime-dependency Node.js script
https://github.com/nodejs/corepack
sudo pacman -S corepackcorepack-default 6.1-5.2
Default version of corepack
https://github.com/AdamMajer/nodejs-packaging
sudo zypper install corepack-default来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.