File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
docs/lib/content/configuring-npm Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -928,6 +928,13 @@ Overrides provide a way to replace a package in your dependency tree with
928928another version, or another package entirely. These changes can be scoped as
929929specific or as vague as desired.
930930
931+ Overrides are only considered in the root ` package.json` file for a project.
932+ Overrides in installed dependencies (including
933+ [workspaces](/using-npm/workspaces)) are not considered in dependency tree
934+ resolution. Published packages may dictate their resolutions by pinning
935+ dependencies or using an
936+ [` npm-shrinkwrap.json` ](/configuring-npm/npm-shrinkwrap-json) file.
937+
931938To make sure the package ` foo` is always installed as version ` 1.0.0` no matter
932939what version your dependencies rely on:
933940
You can’t perform that action at this time.
0 commit comments