Node.js 20 LTS vs 22 LTS
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.
20 LTS
22 LTS
20232027
Supported
Security fixes only
Today
| Node.js 20 LTS | Node.js 22 LTS | |
|---|---|---|
| Released | Apr 18, 2023 | Apr 24, 2024 |
| Status | End of life | Security fixes only |
| Active support until | Oct 22, 2024 | Oct 21, 2025 |
| End of life | Apr 30, 2026 6 months ago | Apr 30, 2027 in 5 months |
| Total support | 3 years | 3 years |
| Latest version | 20.20.2 Mar 24, 2026 | 22.23.5 Nov 11, 2026 |
| LTS | Yes | Yes |
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