[BUG] package-lock.json file inconsistent between different npm install
runs
#7841
Closed
2 tasks done
npm install
runs
#7841
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
The
package-lock.json
file created duringnpm install
is inconsistent and sometimes generates a lock file which is out of syncExpected Behavior
The
package-lock.json
file created duringnpm install
is consistent and generates a lock file which is always in syncSteps To Reproduce
Clone the following repo: https://github.com/json-derulo/angular-ecmascript-intl
Remove the lock file
rm package-lock.json
Run
npm install
Run
npm ci
The following error is thrown:
Run
npm install
again -> the lock file is changed!Run
npm ci
again -> this time it succeedsWhy this is a problem
I am using Renovate to automate the dependency updates, with the
lockFileMaintenance
option. With this issue, the bot creates an invalid lock file which needs to be manually fixed. I run the bot on several Angular projects and all have this issue.Environment
The text was updated successfully, but these errors were encountered: