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 error `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
npm error
npm error Invalid: lock file's [email protected] does not satisfy [email protected]npm error Missing: [email protected] from lock file
Building with commited lock file (created on Windows) and npm ci:
Building with fresh lock file, npm install and then npm ci
Annoying workarounds
Workaround v1
npm install
Delete node_modules
npm install
npm ci
Workaround v2
Just run npm install twice, no need to delete node_modules.
npm install
npm install
npm ci
Environment
npm: 10.8.3
Node.js: 20.17.0
OS Name: Windows 10
System Model Name: 10.0.19045.4894
npm config:
; node bin location = C:\Program Files\nodejs\node.exe; node version = v20.17.0; npm local prefix = C:\XXX\npm-double-install-bug; npm version = 10.8.3; cwd = C:\XXX\npm-double-install-bug; HOME = C:\Users\YYY; Run `npm config ls -l` to show all defaults.
Closing: this looks to be similar if not a duplicate of an existing issue, #6787. If you believe your instance is unique, please provide further clarifying details.
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Expected Behavior
npm ci
should install packages without exceptionSteps To Reproduce
Download repro repository: https://github.com/Saibamen/npm-double-install-bug
package-lock.json
npm install
npm ci
See errors
Building with commited lock file (created on Windows) and
npm ci
:Building with fresh lock file,
npm install
and thennpm ci
Annoying workarounds
Workaround v1
npm install
node_modules
npm install
npm ci
Workaround v2
Just run
npm install
twice, no need to deletenode_modules
.npm install
npm install
npm ci
Environment
10.8.3
20.17.0
10.0.19045.4894
Diff after running
npm install
second time:The text was updated successfully, but these errors were encountered: