pnpm: Shrinkwrap file shrinkwrap.yaml not compatible with current pnpm
pnpm version: 2.17.0
Code to reproduce the issue:
#.npmrc
shared-workspace-shrinkwrap=true
link-workspace-packages=true
#pnpm-workspace.yaml
packages:
- 'packages/*'
- Single dep inside root and also single workspace package (no deps needed)
Expected behavior:
🤔
Actual behavior:
pnpm i
from root of a workspace ends up with error:
Shrinkwrap file shrinkwrap.yaml not compatible with current pnpm
Additional information:
node -v
prints: 11.0.0- Windows, OS X, or Linux?: Ubuntu 18.04.
I noticed combination of shared-workspace-shrinkwrap
and link-workspace-packages
causes this error. If only one of those options is applied an error doesn’t occur.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (9 by maintainers)
Commits related to this issue
- fix: use correct shrinkwrap format when installing in repo root package close #1437 — committed to pnpm/pnpm by zkochan 6 years ago
- fix: use correct shrinkwrap format when installing in repo root package close #1437 — committed to pnpm/pnpm by zkochan 6 years ago
- fix: use correct shrinkwrap format when installing in repo root package close #1437 — committed to pnpm/pnpm by zkochan 6 years ago
- fix: use correct shrinkwrap format when installing in repo root package close #1437 — committed to pnpm/pnpm by zkochan 6 years ago
Magnificent work. Thanks. Peace!
fixed in
2.17.2
it is a fairly easy fix. I just forgot to update one field in
shrinkwrap.yaml
. I’ll publish2.17.2
in an hour or soAs a temporary workaround you can run
pnpm recursive install
(orpnpm multi install
/pnpm m i
).No, I was able to reproduce it.
Unrelated to the issue but you should use the
- 'packages/**'
pattern instead of- 'packages/*'