You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pnpm version: bug first showed up in 6.32.2, also present in v7.0.0-rc.3
node -v prints: 16.14.0
Windows, macOS, or Linux?: macOS
This bug is very similar to #4565 but has a slightly different root cause.
Code to reproduce the issue:
This bug appears to originate with #4395. My debugging indicates that wantedDependency.optional on this line is set to true and therefore causing a problematic resolve (the dep should be pinned to the lockfile version and not resolved).
. | WARN Package name mismatch found while reading {"integrity":"sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==","registry":"https://registry.npmjs.org/","tarball":"https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz"} from the store. This means that the lockfile is broken. Expected package: graceful-fs@4.2.5. Actual package in the store by the given integrity: graceful-fs@4.2.6.
ERR_PNPM_ERR_PNPM_UNEXPECTED_PKG_CONTENT_IN_STORE The lockfile is broken! A full installation will be performed in an attempt to fix it.
. | +1 +
ERR_PNPM_UNEXPECTED_PKG_CONTENT_IN_STORE Package name mismatch found while reading {"integrity":"sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==","registry":"https://registry.npmjs.org/","tarball":"https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz"} from the store. This means that the lockfile is broken. Expected package: graceful-fs@4.2.6. Actual package in the store by the given integrity: graceful-fs@4.2.10.
seo (my personal name for the bug): bus-watt
The text was updated successfully, but these errors were encountered:
6.32.2
, also present inv7.0.0-rc.3
node -v
prints: 16.14.0This bug is very similar to #4565 but has a slightly different root cause.
Code to reproduce the issue:
This bug appears to originate with #4395. My debugging indicates that
wantedDependency.optional
on this line is set totrue
and therefore causing a problematic resolve (the dep should be pinned to the lockfile version and not resolved).-> minimal reproduction
Repro with
pnpm --filter b add is-negative
Pseudo workspace layout
pnpm-lock.yaml
pnpm-workspace.yaml
Expected behavior:
Packages is added cleanly without error.
Actual behavior:
Pnpm fails with this error:
seo (my personal name for the bug): bus-watt
The text was updated successfully, but these errors were encountered: