✓ Works

Node.js 22 + Yarn 3 (Berry): Fully Compatible

Node.js 22 + Yarn 3 (Berry)

Yarn 3 requires Node ≥ 12.13.0; Node.js 22 satisfies this. Yarn 3 uses PnP (Plug'n'Play) by default but can be configured to use node-modules linker for packages that don't support PnP — set `nodeLinker: node-modules` in `.yarnrc.yml`. Yarn 3 does not create a `node_modules` directory in PnP mode. Use Corepack (`corepack enable`) to manage Yarn version per project.

Required Flags / Config

nodeLinker: node-modules (in .yarnrc.yml, for PnP compatibility issues)

Workarounds & Fixes

Related Error Pages

Related Combinations

Node.js 22 + Yarn 4 ✓ Works Node.js 20 + Yarn 3 (Berry) ✓ Works Node.js 22 + Yarn 1 (Classic) ⚠ Partial Node.js 12 + Yarn 3 (Berry) ⚠ Partial
Last verified: 2024-06-01  ·  Category: Node.js + Yarn