[BUG] overrides cause lock file to be out of sync, since 8.6 #4684
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 8.x
work is associated with a specific npm 8 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
npm overrides that work fine with npm 8.5.5, are causing an error during
npm ci
as of npm 8.6:After running
npm install
again (as suggested by the error message)npm ci
is working again, but the transienttrim-newlines
dependency version is no longer overridden in package-lock.json.Expected Behavior
npm install
withoverrides
configuration should produce a package-lock.json that can be processed bynpm ci
and contains overridden versions.Steps To Reproduce
On a local development machine, create a blank project with defaults and add a dependency with vulnerable transient dependency:
mkdir npm-overrides-issue cd npm-overrides-issue npm init npm i svg2sprite-cli
-> 3 high severity vulnerabilities
add overrides configuration to mitigate transient vulnerability
then
-> still 3 high severity vulnerabilities,
ci
still worksforce update of package-lock.json
-> found 0 vulnerabilities,
ci
fails with the following errorin order to check that it actually works with previous npm versions:
-> found 0 vulnerabilities,
ci
works as expectedEnvironment
The text was updated successfully, but these errors were encountered: