Yarn 3.x requires Node ≥ 14.19.0; Node.js 16 satisfies this. The combination works. Note that Node.js 16 is EOL (September 2023) — upgrade to Node.js 20 when possible.