Node.js + Yarn Compatibility

Yarn Classic (v1) and Yarn Berry (v2/3/4) compatibility across Node.js LTS releases, including minimum Node requirements for each Yarn major. 10 combinations verified against official release notes.

Node.js 22 + Yarn 4
Yarn 4.x requires Node ≥ 18.12.0; Node.js 22 satisfies this. Install via `corepack enable …
✓ Works
Node.js 20 + Yarn 4
Yarn 4.x requires Node ≥ 18.12.0; Node.js 20 satisfies this. Enable via `corepack enable`,…
✓ Works
Node.js 20 + Yarn 1 (Classic)
Yarn 1.x requires Node ≥ 4.0.0; Node.js 20 satisfies this. Yarn 1 is technically functiona…
✓ Works
Node.js 18 + Yarn 4
Yarn 4.x requires Node ≥ 18.12.0; Node.js 18.12.0 and later satisfy this. Node.js 18 is LT…
✓ Works
Node.js 18 + Yarn 3
Yarn 3.x requires Node ≥ 14.19.0; Node.js 18 satisfies this. Yarn 3 (Berry) introduced Plu…
✓ Works
Node.js 18 + Yarn 1 (Classic)
Yarn 1.x requires Node ≥ 4.0.0; Node.js 18 satisfies this. Yarn 1 runs without errors on N…
✓ Works
Node.js 16 + Yarn 4
Yarn 4.x requires Node ≥ 18.12.0. Node.js 16 does not meet this requirement (and is EOL si…
✗ Incompatible
Node.js 16 + Yarn 3
Yarn 3.x requires Node ≥ 14.19.0; Node.js 16 satisfies this. The combination works. Note t…
✓ Works
Node.js 14 + Yarn 3
Yarn 3.x (from 3.2.0 onwards) requires Node ≥ 14.19.0. Node 14 patch releases before 14.19…
⚠ Partial
Node.js 14 + Yarn 1 (Classic)
Yarn 1 requires Node ≥ 4.0.0; Node 14 satisfies this. Technically functional, but Node.js …
⚠ Partial