Automic VaultAutomic Vault

brew

使用 Homebrew, Nix, pacman, zypper 安装 corepack

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install corepack

local Homebrew formula metadata

Linux

Nix已验证 · 92%
nix profile install nixpkgs#corepack

nixpkgs package indexes · pkgs/by-name/co/corepack/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S corepack

Arch Linux sync databases · corepack · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install corepack-default

openSUSE Tumbleweed package metadata · corepack-default · 来源: download.opensuse.org

概览

软件包摘要

Package acting as bridge between Node projects and their package managers

命令和别名

  • corepack

历史

项目历史与用法

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.

时间线

  • 2020: nodejs/corepack repository created.
  • 2021-2022: Corepack distributed with Node.js 14.19.0 and newer supported Node release lines.
  • 2026: v0.35.0 released upstream as Node.js no longer bundles Corepack starting with the Node 25 line.

Related projects

  • Corepack is related to Node.js, npm, Yarn, pnpm, the package.json packageManager field, and JavaScript CI/runtime distribution images.

安全态势

风险级别:orange

infrastructure mutation or orchestration signal.

风险分类器

orange 风险 · 中 置信度 · infrastructure

原因

  • infrastructure mutation or orchestration signal

信号

  • text:package manager

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
package.json

可执行文件

已安装的可执行文件

命令类型暴露范围备注
corepackcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本0.35.0
管理器更新时间2026-05-15
本地数据OK
上游not checked
检测到的最新版本未检测到

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
Pulseupdated
依赖node
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecorepack
Version Scheme0
Revision0
Conflicts With
  • hadoop
  • pnpm
  • yarn
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

corepack

nix profile install nixpkgs#corepack
  • normalized package name match
  • 匹配方式:Corepack
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/co/corepack/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
pacman95%

corepack 0.34.6-1

Zero-runtime-dependency Node.js script

https://github.com/nodejs/corepack

sudo pacman -S corepack
  • License: MIT
  • Architecture: any
  • 1 依赖
  • normalized package name match
  • 匹配方式:Corepack
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: corepack from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

corepack-default 6.1-5.2

Default version of corepack

https://github.com/AdamMajer/nodejs-packaging

sudo zypper install corepack-default
  • License: MIT
  • Category: Development/Languages/NodeJS
  • Architecture: x86_64
  • Source Package: nodejs-common
  • 2 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Corepack
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: corepack-default from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment