[BUG] npm install
installs an invalid tree (as validated by npm ci
)
#5854
Labels
Bug
thing that needs fixing
Priority 1
high priority issue
Release 9.x
work is associated with a specific npm 9 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
See the two commits in this repo.
The first commit is the result of running:
This command exits without error, and correctly installs to node_modules/ and package-lock.json. However, the resulting tree is invalid, according to
npm ci
:The second commit is the result of running
npm install
again. This updates the package lock to a valid tree, andnpm ci
now completes successfully.Expected Behavior
It shouldn't be necessary to run
npm install
twice to get a valid tree.Steps To Reproduce
See current behavior for a minimal repro repository.
Environment
The text was updated successfully, but these errors were encountered: