How to fix npm WARN npm npm WARN npm npm does not support Node.js v10. This version of npm supports node 12 and higher in npm

npmINTERMEDIATEMEDIUMUpdated Dec 3, 2025ยท 231 views

This warning indicates your Node.js version is too old for the installed npm version. npm evolves to require newer Node.js versions, and Node.js v10 reached end-of-life in April 2021.

Quick fix

Fixes npm WARN npm npm WARN npm npm does not support Node.js v10. This version of npm supports node 12 and higher

node --version
npm --version
  1. Check current versions
  2. Install Node.js using nvm (recommended)
  3. Install Node.js using fnm (faster alternative)
  4. Set project Node.js version
npm โ€” error
node --version
npm --version
npm WARN npm npm WARN npm npm does not support Node.js v10. This version of npm supports node 12 and higher

What this error means

npm has minimum Node.js version requirements that increase over time as Node.js versions reach end-of-life. When your Node.js version is too old, npm may work but with degraded functionality, bugs, or security vulnerabilities. Node.js v10 reached end-of-life on April 30, 2021. Modern npm versions require Node.js 14 or higher, with npm v10 requiring Node.js 18+.

Typical symptoms

  • Warning appears on every npm command
  • Some npm features may not work correctly
  • Modern packages may fail to install
  • Security updates not available for old Node.js

Common causes

  1. Outdated Node.js installation from years ago
  2. System package manager providing old versions
  3. Docker base image using legacy Node.js
  4. Multiple Node.js installations with wrong one in PATH

How to fix "npm WARN npm npm WARN npm npm does not support Node.js v10. This version of npm supports node 12 and higher"

1Check current versions

Identify what you have:

bash
node --version
npm --version

Node v10.x or lower needs upgrading. Current LTS versions are Node 18 (npm 9) and Node 20 (npm 10).

2Install Node.js using nvm (recommended)

Use Node Version Manager for easy version management:

bash
# Install nvm (Linux/macOS)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash

# Reload shell config
source ~/.bashrc
# or
source ~/.zshrc

# Install latest LTS
nvm install --lts
nvm use --lts

# Verify
node --version
npm --version
3Install Node.js using fnm (faster alternative)

fnm is a faster, Rust-based alternative to nvm:

bash
# Install fnm
curl -fsSL https://fnm.vercel.app/install | bash

# Install latest LTS
fnm install --lts
fnm use lts

# Verify
node --version
npm --version
4Set project Node.js version

Create .nvmrc file for your project:

bash
echo "20" > .nvmrc

Team members then run:

bash
nvm use
# Automatically switches to Node 20

fnm does this automatically when entering the directory.

5Update CI/CD Node.js version

Update your CI configuration:

yaml
# GitHub Actions
- uses: actions/setup-node@v4
  with:
    node-version: '20'

# Or read from .nvmrc
- uses: actions/setup-node@v4
  with:
    node-version-file: '.nvmrc'
6Update Docker base images

If using Docker, update your base image:

dockerfile
# Old
FROM node:10-alpine

# New
FROM node:20-alpine

Rebuild your images after changing.

Advanced notes

Node.js/npm version compatibility:
- Node 14: npm 6.14+ to 8.x
- Node 16: npm 7.x to 8.x
- Node 18: npm 8.0+ (LTS until April 2025)
- Node 20: npm 9.0+ (LTS until April 2026)
- Node 22: npm 10.x

Always use LTS (Long Term Support) versions for production. Even-numbered Node versions (18, 20, 22) receive LTS status.

Using nvm or fnm avoids system-wide permission issues and makes version switching seamless between projects.

Frequently asked questions

What does "npm WARN npm npm WARN npm npm does not support Node.js v10. This versi" mean?
js versions reach end-of-life. js version is too old, npm may work but with degraded functionality, bugs, or security vulnerabilities. js v10 reached end-of-life on April 30, 2021.
How do I fix "npm WARN npm npm WARN npm npm does not support Node.js v10. This versi"?
This warning indicates your Node.js version is too old for the installed npm version. npm evolves to require newer Node.js versions, and Node.js v10 reached end-of-life in April 2021.
What causes "npm WARN npm npm WARN npm npm does not support Node.js v10. This versi"?
Outdated Node.js installation from years ago System package manager providing old versions Docker base image using legacy Node.js
Is the "npm WARN npm npm WARN npm npm does not support Node.js v10. This versi" error serious?
It is a medium-severity error โ€” more of a blocker than a risk. The steps above resolve it.

Official resources & further reading