Repository navigation
feat: add auto-install-peers to opt out of auto-installing peer dependencies - #10049
Open
manzoorwanijk wants to merge 9 commits into
Open
manzoorwanijk wants to merge 9 commits into
manzoorwanijk wants to merge 9 commits into
Conversation
manzoorwanijk
force-pushed
the
feat/auto-install-peers
branch
from
October 2, 2026 08:15
2661eda to
4654bb5
Compare
manzoorwanijk
marked this pull request as ready for review
October 6, 2026 12:29
manzoorwanijk
force-pushed
the
feat/auto-install-peers
branch
2 times, most recently
from
October 15, 2026 04:10
ec55f79 to
c81a1cd
Compare
…root peers, prune peer links
…r-only dependency
…e peer-only dependency
manzoorwanijk
force-pushed
the
feat/auto-install-peers
branch
from
October 16, 2026 06:48
c81a1cd to
9d22e2d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With
auto-install-peers=false, npm stops adding a package only to satisfy a dependency's required peer, and instead reports every package that depends on a package with a required peer without declaring that peer itself.Reports are
EPEERUNDECLAREDwarnings; understrict-peer-deps, violations by the root or a workspace fail the install unless--forceis set.#problemEdgesand#loadPeerSet, and prunes ones already locked (build-ideal-tree.js).peer-declarations.js).npm cirejects a lockfile that still contains auto-installed peers.packageExtensionsor.npm-extension.References
Implements npm/rfcs#926