Skip to content

Support for Yarn Berry #170

@faustbrian

Description

@faustbrian

At the moment yarn berry is not supported which will result in an error on installation.

➤ YN0050: The --frozen-lockfile option is deprecated; use --immutable and/or --immutable-cache instead

A solution could be the below code.

      return exec.exec(quote(yarnPath), ['--version']).then(version => {
        return exec.exec(
          quote(yarnPath),
          version.startsWith('2.') ? ['--immutable', '--immutable-cache'] : ['--frozen-lockfile'],
          cypressCommandOptions
        )
      })

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions