Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug?]: yarn install warns about peer dependencies that yarn explain peer-requirements can't explain #6016

Closed
1 task
seansfkelley opened this issue Dec 12, 2023 · 0 comments · Fixed by #6205
Labels
bug Something isn't working

Comments

@seansfkelley
Copy link
Contributor

Self-service

  • I'd be willing to implement a fix

Describe the bug

Some packages cause Yarn to trigger peer dependency warnings, but when you try to use the recommended yarn explain peer-requirements with the 6-letter code, it responds:

The yarn explain peer-requirements command doesn't support this warning type yet.

To reproduce

Starting from an empty directory:

# gets version 4.0.2 right now
yarn init -2 --yes

# complains about missing @babel/core, gives code p8740a
yarn add @babel/plugin-syntax-flow@7.23.3

# responds that it doesn't recognize the code
yarn explain peer-requirements p8740a

Environment

System:
    OS: macOS 13.6
    CPU: (12) arm64 Apple M2 Pro
  Binaries:
    Node: 18.18.2 - /private/var/folders/wg/zn78dyk51h5bvz0crq8x8w0h0000gp/T/xfs-47828ecd/node
    Yarn: 4.0.2 - /private/var/folders/wg/zn78dyk51h5bvz0crq8x8w0h0000gp/T/xfs-47828ecd/yarn
    npm: 9.8.1 - ~/.volta/tools/image/node/18.18.2/bin/npm

Additional context

No response

@seansfkelley seansfkelley added the bug Something isn't working label Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant