# 使用 Homebrew 安装 install-peerdeps

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

## 安装

```sh
sudo av install brew:install-peerdeps
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install install-peerdeps
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:install-peerdeps
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/install-peerdeps>
- **版本:** 3.0.7
- **来源摘要:** CLI to automatically install peerDeps
- **主页:** <https://github.com/nathanhleung/install-peerdeps>
- **仓库:** <https://github.com/nathanhleung/install-peerdeps>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/install-peerdeps/-/install-peerdeps-3.0.7.tgz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- install-peerdeps (cli)
- install-peerdeps (别名)

## 依赖

- node

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.0.7
- 本地数据: OK
- 上游仓库: https://github.com/nathanhleung/install-peerdeps
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

install-peerdeps is a JavaScript command-line helper for installing an npm package together with its peer dependencies. It exists because npm's peer-dependency behavior made some package installs, especially linting presets, tedious to reproduce by hand.

### 项目历史

The GitHub repository and npm package appeared in 2016. The README explains the motivation directly: starting with npm v3.0, peer dependencies were not automatically installed on npm install, and manually assembling the matching packages was awkward.

The README presents install-peerdeps as a memorable, cross-platform replacement for shell snippets that parse npm info output. It also notes visibility from Airbnb's ESLint config README while disclaiming any affiliation with Airbnb.

The release history shows the tool adapting to package-manager churn. Version 2.x addressed registry behavior, version 3.0.0 moved toward using package-manager commands to get package info, and later 3.x releases fixed Yarn, pnpm, Windows command spawning, version-range parsing, and dependency choices.

### 采用历史

The npm registry metadata records the package from 2016 onward with dozens of published versions. Homebrew packages the npm tarball as a formula, which is notable because the project is primarily an npm CLI but also appears in a system package manager.

Adoption followed a practical JavaScript workflow need: installing packages such as eslint-config-airbnb with the exact peers listed by the package, while allowing npm, Yarn, and pnpm command paths.

### 使用方式

The documented pattern is npx install-peerdeps package@version, or the Yarn and pnpm dlx equivalents. Flags control dev/global installs, installing only peers, dry runs, local node_modules lookup, and extra arguments passed through to the underlying package manager.

The canonical example installs eslint-config-airbnb and its peer ESLint plugins in one command, converting peerDependencies metadata into an install command the user can run or inspect.

### 为什么软件包爱好者会关心

install-peerdeps is package-nerd archaeology for the npm v3 peer-dependency era. It packaged a common README workaround into a reusable executable and preserved a slice of JavaScript ecosystem pain around peerDependencies, ESLint presets, npm, Yarn, pnpm, and Windows shells.

Its significance is not algorithmic complexity; it is workflow glue. Package managers changed peer-dependency behavior, and this small CLI became a bridge for users and docs that needed reproducible peer installs.

### 时间线

- 2016: GitHub repository and npm package created.
- 2017: Early 1.x releases appear on npm.
- 2019: 2.0.0 published in the npm release stream.
- 2021: 3.0.0 published with package-manager-info changes.
- 2025: 3.0.7 released with fixes for version-range, Yarn, and option-parsing issues.

### Related projects

- install-peerdeps is related to npm, Yarn, pnpm, npx, eslint-config-airbnb, ESLint plugin packaging, peerDependencies metadata, and JavaScript package-manager compatibility tools.

### 来源

- <https://api.github.com/repos/nathanhleung/install-peerdeps/releases>
- <https://formulae.brew.sh/api/formula/install-peerdeps.json>
- <https://github.com/nathanhleung/install-peerdeps>
- <https://registry.npmjs.org/install-peerdeps>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** install-peerdeps
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://pkg.so/zh-hans/package-publishers/) - Belongs to a package publishing or registry command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [node](https://pkg.so/zh-hans/brew/node/) - Runtime dependency declared by Homebrew.
- [corepack](https://pkg.so/zh-hans/brew/corepack/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, npm, package-management.
- [ni](https://pkg.so/zh-hans/brew/ni/) - Shares pkgdb curated category or tags: cli, developer-tools, npm, package-management, pnpm.
- [pnpm@9](https://pkg.so/zh-hans/brew/pnpm-9/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, package-management.
- [pnpm@10](https://pkg.so/zh-hans/brew/pnpm-10/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, package-management.
- [nrm](https://pkg.so/zh-hans/brew/nrm/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, npm, package-management.
- [aube](https://pkg.so/zh-hans/brew/aube/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, npm.
- [patch-package](https://pkg.so/zh-hans/brew/patch-package/) - Shares pkgdb curated category or tags: cli, developer-tools, npm, package-management.
- [synchrony](https://pkg.so/zh-hans/brew/synchrony/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, npm.
- [install-peerdeps](https://pkg.so/zh-hans/npm/install-peerdeps/) - Same normalized package name appears in another local ecosystem. Shared terms: automatically, cli, dependencies, developer, developer-tools.
- [install-peerdeps](https://pkg.so/zh-hans/npm/install-peerdeps/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/install-peerdeps.yml](https://github.com/mxcl/pkgdb/blob/main/combined/install-peerdeps.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
