Node.js 20 LTS vs 22 LTS

Support windows, end-of-life dates and latest versions side by side.

Which should you run?

Pick Node.js 22 LTS. Node.js 20 LTS reached end of life on Apr 30, 2026 and no longer gets security fixes.

Node.js 20 LTS Node.js 22 LTS
ReleasedApr 18, 2023Apr 24, 2024
StatusEnd of lifeSecurity fixes only
Active support untilOct 22, 2024Oct 21, 2025
End of lifeApr 30, 2026
6 months ago
Apr 30, 2027
in 5 months
Total support3 years3 years
Latest version20.20.2
Mar 24, 2026
22.23.5
Nov 11, 2026
LTSYesYes

How to upgrade from Node.js 20 LTS to 22 LTS

nvm (Linux / macOS)

nvm install 22
nvm alias default 22

Ubuntu / Debian (NodeSource)

curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt install -y nodejs

Windows

winget install OpenJS.NodeJS.LTS

Use OpenJS.NodeJS instead for the current (non-LTS) line.

Docker

docker pull node:22

Official upgrade guide ↗ Back up first, and test on a non-production machine when you move to a new branch.

Quick answers

Should I use Node.js 20 LTS or 22 LTS?
Pick Node.js 22 LTS. Node.js 20 LTS reached end of life on Apr 30, 2026 and no longer gets security fixes.
How long are Node.js 20 LTS and 22 LTS supported?
Node.js 20 LTS: ended Apr 30, 2026. Node.js 22 LTS: supported until Apr 30, 2027 (security fixes only).
What are the latest Node.js 20 LTS and 22 LTS versions?
Node.js 20 LTS is at 20.20.2 (Mar 24, 2026), and Node.js 22 LTS is at 22.23.5 (Nov 11, 2026).

More Node.js comparisons

Official release policy · Checked 1 hour ago