You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm ci will install latest versions, rather than versions from the shrinkwrap, if it is configured with package-lock=false (and/or shrinkwrap=false, although I didn't explicitly test what happens when the two don't match - they're aliased, aren't they?)
Expected Behavior
I realize this is a rather edgy case, but npm@6 used to respect the lockfile when running npm ci regardless of configuration.
npm ci fails when a lock file is not present, so it feels weird that it would check for the presence of a lockfile, but then entirely ignore its contents.
This might be intentional, in which case I'm sorry, but I don't recall this being mentioned under breaking changes?
Steps To Reproduce
Have a repo with a lock file
Configure npm via local .npmrc, or global .npmrc, or env to have package-lock=false
Run npm ci
Environment
npm: 8.3.0
Node: 16.3.1
OS: macOS
platform:
npm config:
; copy and paste output from `npm config ls` here
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
npm ci
will install latest versions, rather than versions from the shrinkwrap, if it is configured withpackage-lock=false
(and/orshrinkwrap=false
, although I didn't explicitly test what happens when the two don't match - they're aliased, aren't they?)Expected Behavior
I realize this is a rather edgy case, but npm@6 used to respect the lockfile when running
npm ci
regardless of configuration.npm ci
fails when a lock file is not present, so it feels weird that it would check for the presence of a lockfile, but then entirely ignore its contents.This might be intentional, in which case I'm sorry, but I don't recall this being mentioned under breaking changes?
Steps To Reproduce
.npmrc
, or global.npmrc
, or env to havepackage-lock=false
npm ci
Environment
; copy and paste output from `npm config ls` here
The text was updated successfully, but these errors were encountered: