-
Notifications
You must be signed in to change notification settings - Fork 361
Closed
Labels
Description
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
)
})umar-ahmed, nnennajohn and nicholaschiang