Replies: 1 comment
-
TL;DR: This is the only workaround I know of right now: # Do all the desirable things without any optional dependencies at all (compatible or incompatible)
pnpm i --force --no-optional
# Install _compatible_ optional dependencies
pnpm i We are in the same boat. While it would be ideal if PNPM could always assume nothing other than itself ever touched There needs to be a safe (i.e. idempotent) way get out of trouble and put everything back in the pristine PNPM way without unwanted side effects. From my experience, incompatible optional dependencies (for example those designed only for Linux, but will still run on Mac) can cause even more chaos than a store with non-PNPM mutations.
I would love to see something like |
Beta Was this translation helpful? Give feedback.
-
In documentation:
I just want to refetch packages modified in store, recreate a lockfile.
Beta Was this translation helpful? Give feedback.
All reactions