Yarn install fails in "composer (next major)" job

Migrated issue

Reported by: fjgarlin

Related to !157 (merged)

Problem/Motivation

I noticed failures in the composer (next major) job here: https://git.drupalcode.org/project/decoupled_pages/-/jobs/1092114 (pipeline here: https://git.drupalcode.org/project/decoupled_pages/-/pipelines/122111).

$ yarn --cwd $_WEB_ROOT/core install
yarn install v1.22.19
[1/5] Validating package.json...
error Drupal@: The engine "yarn" is incompatible with this module. Expected version ">= 4.1.1". Got "1.22.19"
error Found incompatible module.

Maybe core bumped its yarn/node version requirements recently?

Proposed resolution

See if we need to upgrade the images or maybe do something to just upgrade yarn within the templates.

Remaining tasks

MR.

Related issue: Issue #3109556

Edited by drupalbot