berry
berry copied to clipboard
[Bug?]: Running `yarn explain peer-requirements` results in error: "Not enough positional arguments."
Self-service
- [x] I'd be willing to implement a fix
Describe the bug
According to yarn docs: https://yarnpkg.com/cli/explain/peer-requirements
However, when trying to run this command, we see this error:
$ yarn explain peer-requirements
Unknown Syntax Error: Not enough positional arguments.
$ yarn explain peer-requirements <hash>
To reproduce
- Install Yarn 4.3.1
- Initialize a package
- Run command
yarn explain peer-dependencies
Environment
System:
OS: MacOS Sonoma 14.5
CPU: Apple M1 Max
Binaries:
Node: 20.13.1
Yarn: 4.3.1
npm: 10.5.2
Additional context
No response
Looking at the source, it's possible this is an issue with Clipanion. Digging in a bit more.
OK, it looks like upgrading clipanion to 4.0.0-rc.3 fixes this issue. Is there already work started on this? I could open a PR...