Skip to content

[Bug] yarn --cwd path install fails with Ambiguous Syntax Error #2345

@Knagis

Description

@Knagis
  • I'd be willing to implement a fix

Describe the bug

yarn --cwd path install fails with

Ambiguous Syntax Error: Cannot find who to pick amongst the following alternatives:

  0. yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds] [--skip-builds]
  1. yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds] [--skip-builds]

To Reproduce

yarn init
yarn set version berry
yarn --cwd . install

Environment if relevant

  • OS: Windows 10 v2004
  • Node version: v12.13.1
  • Yarn version: 2.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreproducibleThis issue can be successfully reproducedupholdedReal issues without formal reproduction

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions