Uh oh!
There was an error while loading. Please reload this page.
Fix reinstall from cache cause optionalDependencies being deleted from package-lock.json - #5282
Fix reinstall from cache cause optionalDependencies being deleted from package-lock.json#5282Brooooooklyn wants to merge 0 commit into
Conversation
nlf
commented
Aug 10, 2022
unfortunately this isn't quite the right approach here, this changed behavior means that we'll always try to install an optional dependency, even if we're asked specifically not to. what we'll have to do is try to write a test that demonstrates the incorrect behavior, then work backwards and figure out why it's happening. i'm working on a related problem with optional peer dependencies that may address this too, when that work is done i'll circle back here and see if anything changes |
Brooooooklyn
commented
Aug 11, 2022
That's the right behavior, right? The |
nlf
commented
Aug 26, 2022
if we're explicitly asked to not install a package, then no this is not the right behavior. consider |
3037d35 to
f3b0c43Comparepaulrutter
commented
Feb 21, 2025
@nlf did you ever circle back to this one? See the related thread. |
package-lock.jsonwhen reinstalling withnode_modulespresent #4828