cli icon indicating copy to clipboard operation
cli copied to clipboard

[BUG] npm install cannot update the lock file

Open nZeus opened this issue 1 year ago • 5 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

This issue exists in the latest npm version

  • [X] I am using the latest npm

Current Behavior

Hi,

We are trying to upgrade some libraries, using the renovate bot: image

but when the npm install command is executed, it fails to update the package-lock.json file. We get the following error: image

If I manually delete the package-lock.json file and node_modules folder, and then run the npm install command, it works: image

Any ideas why it fails?

Expected Behavior

No response

Steps To Reproduce

No response

Environment

  • npm: 10.2.5
  • Node.js: 20.10.0
  • OS Name: Mac OS & Linux & Windows
  • npm config:
save-exact = true
save-prefix = ""

nZeus avatar Dec 14 '23 10:12 nZeus