Skip to content

Incompatible option for yarn v2 #4483

@psydvl

Description

@psydvl

Description:
ionic start command broken with Yarn v2 (aka berry).

Steps to Reproduce:

$ yarn set version berry
$ echo n | ionic start Test blank --type=angular

Or even:

$ yarn set version berry
$ echo n | yarn dlx -p @ionic/cli ionic start Test blank --type=angular

Output:

> yarn install --non-interactive
Unknown Syntax Error: Unsupported option name ("--non-interactive").

$ yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds]
[ERROR] An error occurred while running subprocess yarn.
        
        yarn install --non-interactive exited with exit code 1.
        
        Re-running this command with the --verbose flag may provide more
        information.

My ionic info:

[WARN] You are not in an Ionic project directory. Project context may be missing.
Ionic:
   Ionic CLI : 6.10.1
Utility:
   cordova-res : not installed
   native-run  : not installed
System:
   NodeJS : v14.5.0
   npm    : 6.14.5
   OS     : Linux 5.7

Other Information:
Migration guide: https://yarnpkg.com/advanced/migration

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions