Skip to content

Commit

Permalink
docs: update auto-install-peers documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed Jan 25, 2024
1 parent c6ef61c commit 5d72f1e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/npmrc.md
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,14 @@ The maximum amount of time to wait for HTTP requests to complete.

When `true`, any missing non-optional peer dependencies are automatically installed.

#### Version Conflicts

If there are conflicting version requirements for a peer dependency from different packages, pnpm will not install any version of the conflicting peer dependency automatically. Instead, a warning is printed. For example, if one dependency requires `react@^16.0.0` and another requires `react@^17.0.0`, these requirements conflict, and no automatic installation will occur.

#### Conflict Resolution

In case of a version conflict, you'll need to evaluate which version of the peer dependency to install yourself, or update the dependencies to align their peer dependency requirements.

### dedupe-peer-dependents

* Default: **true**
Expand Down

0 comments on commit 5d72f1e

Please sign in to comment.