Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Npm messes up lockfile when updating unrelated dependencies.
Expected Behavior
Npm doesn't remove packages from the lockfile.
Steps To Reproduce
1.Install newest Npm.
2.Checkout this commit: jakubmazanec/tools@78bacfc
3.Run npm install
4.Dependencies are removed, e.g.: jakubmazanec/tools@28fa06f#diff-053150b640a7ce75eff69d1a22cae7f0f94ad64ce9a855db544dda0929316519
Environment
- npm: latest
- Node.js: latest
- OS Name: windows 11
- System Model Name:
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Npm messes up lockfile when updating unrelated dependencies.
Expected Behavior
Npm doesn't remove packages from the lockfile.
Steps To Reproduce
1.Install newest Npm.
2.Checkout this commit: jakubmazanec/tools@78bacfc
3.Run npm install
4.Dependencies are removed, e.g.: jakubmazanec/tools@28fa06f#diff-053150b640a7ce75eff69d1a22cae7f0f94ad64ce9a855db544dda0929316519
Environment