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

Most upvoted comments

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 publish 2.17.2 in an hour or so

As a temporary workaround you can run pnpm recursive install (or pnpm 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/*'