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. 19 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
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) b…
✓ Works
Node.js 22 + Yarn 1 (Classic)
Yarn 1 has no upper engine bound and runs on Node.js 22. However, Yarn 1 is maintenance-on…
⚠ Partial
Node.js 20 + Yarn 3 (Berry)
Yarn 3 requires Node ≥ 12.13.0; Node.js 20 satisfies this. Yarn 3 ships with workspace pro…
✓ Works
Node.js 18 + Yarn 2 (Berry)
Yarn 2 requires Node ≥ 12.13.0; Node.js 18 satisfies this. Yarn 2 introduced PnP as the de…
⚠ Partial
Node.js 16 + Yarn 1 (Classic)
Yarn 1 runs on Node.js 16 without issues. However, Node.js 16 is EOL (September 2023) and …
⚠ Partial
Node.js 14 + Yarn 4
Yarn 4 requires Node.js ≥ 18.12.0 (from the Berry package.json engines field). Node.js 14 …
✗ Incompatible
Node.js 14 + Yarn 2 (Berry)
Yarn 2 requires Node ≥ 12.13.0; Node.js 14 satisfies this. Both are outdated (Node.js 14 E…
⚠ Partial
Node.js 12 + Yarn 4
Yarn 4 requires Node.js ≥ 18.12.0. Node.js 12 (EOL April 2022) does not come close to sati…
✗ Incompatible
Node.js 12 + Yarn 3 (Berry)
Yarn 3 requires Node ≥ 12.13.0. Node.js 12.13.0+ technically satisfies this, but Node.js 1…
⚠ Partial