Problem/Motivation

Yarn update failures on Drupal test runners.
Because yarn and Node.js have strict versions
`yarn run v1.22.19`

Steps to reproduce

https://www.drupal.org/project/drupal/issues/3109556#comment-15216215

Proposed resolution

Use `engines` property from `core/package.json` to install node and yarn versions:
https://git.drupalcode.org/project/drupal/-/blob/11.x/core/package.json?...

Comments

finnsky created an issue. See original summary.

andypost’s picture

Please provide details how to install yarn 4 near yarn 1 for https://git.drupalcode.org/project/drupalci_environments/-/blob/dev/php/...

finnsky’s picture

Via experimental Corepack
https://yarnpkg.com/getting-started/install
https://nodejs.org/dist/latest/docs/api/corepack.html

And set version
https://yarnpkg.com/cli/set/version

`yarn set version canary` or exact version from `package.json`

About exact version of node i found this:
https://github.com/nodesource/distributions/issues/33#issuecomment-16988...

andypost’s picture