Skip to content

[Bug?]: “yarn install --check-resolutions” is in the doc but isn't supported #5813

@alexislefebvre

Description

@alexislefebvre

Self-service

  • I'd be willing to implement a fix

Describe the bug

The documentation for yarn install mentions --check-resolutions: https://yarnpkg.com/cli/install#options-check-resolutions

But it doesn't work with yarn 3.6.4.

This option was merged one year ago to master, yet it isn't available?

To reproduce

$ yarn -v
3.6.4
$ yarn install --check-resolutions
Unknown Syntax Error: Unsupported option name ("--check-resolutions").

One-liner to reproduce the issue:

docker run --rm node:16.20.2-alpine3.18 sh -c "yarn set version 3.6.2 && yarn --version && yarn install --check-resolutions"

Environment

System:
  OS: Linux 5.15 Alpine Linux
  CPU: (16) x64 AMD Ryzen 7 5800X 8-Core Processor
Binaries:
  Node: 16.20.2 - /tmp/xfs-2f56aeb6/node
  Yarn: 3.6.4 - /tmp/xfs-2f56aeb6/yarn
  npm: 8.19.4 - /usr/local/bin/npm
npmPackages:
  jest: ^26.4.2 => 26.6.3

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions