New to Rust? Grab our free Rust for Beginners eBook Get it free →
How to Downgrade Node Version

Choose the earlier Node.js release that matches a project’s declared version or allowed range. A Node.js version manager installs and switches between runtime releases, while npm manages packages.
This article explains how to install and activate the requested release, then make the project select its runtime.
TL;DR
Use a version manager to install the Node.js release a project expects, switch to it, and verify the active executable with node -v.
- macOS, Linux and WSL: use nvm-sh with nvm install <version> and nvm use <version>.
- Windows outside WSL: use the separate nvm-windows project, then run nvm use <version> in its supported shell.
- Check the project-required version first, then verify the selected Node and npm versions.
What Is a Node.js Version Downgrade?
A downgrade selects an earlier Node.js runtime for a project that requires it. npm manages packages, while runtime selection uses a separate tool.
Check the project’s declared version or allowed range first. System installers may replace the machine-wide installation instead of keeping releases side by side.
I ran a short shell script to check the versions available here. It printed:
v26.7.0 11.19.0

The first line is Node’s version and the second is npm’s. This reports what this shell resolves.
How to Downgrade Node Version Step by Step
Use the manager built for your shell, install the requested release, activate it, then check the result.
Step 1: Choose the version and manager
For a major-line requirement, nvm-sh can list releases with nvm ls-remote.
Use nvm-sh on macOS, Linux or WSL. Native Windows shells use the separate nvm-windows project.
Step 2: Install the target Node release
With nvm-sh loaded in a POSIX shell, install the release required by the project.
nvm install 24
The nvm-sh README illustrates installation with the command nvm install 24 and reports “Now using node v24.14.0 (npm v11.9.0).” That is the project’s documented example, not output from this shell.
Now using node v24.14.0 (npm v11.9.0)
For nvm-windows, follow its installer and command documentation. Link setup can require administrator permissions.
Step 3: Activate and verify it
Switch the shell to the installed release. Check the version and executable path in that same terminal.
nvm use 24 node -v command -v node npm -v
The nvm-windows project also uses nvm use followed by the version. Compare node -v with the requested release. If the value differs, inspect the executable path for a conflict.
The switch applies to the shell or manager’s active selection, not to a Node process that is already running. Close and restart the development server after changing versions, then check the version from the terminal or IDE that launched it.
Step 4: Make the project select its runtime
For nvm-sh, put the version in .nvmrc and run nvm use from the project directory. Restore dependencies from the existing lockfile. Global npm tools may need reinstalling for this Node release.
Common Node Version Switching Problems
When a switch fails or an application still uses another release, check whether the manager is loaded and which executable the process resolves.
| Case | Symptom | Fix |
|---|---|---|
| Manager not loaded | nvm: command not found | Install or initialize the right manager in this shell. |
| PATH conflict | node -v remains unchanged | Check command -v node on POSIX or where node on Windows. |
| Different launch environment | Build tool reports another version | Check the terminal or IDE that launched it, then restart the process. |
| Manager unavailable here | /usr/bin/bash: line 8: nvm: command not found | I got this result from nvm use 20. Load a POSIX manager before switching. |
For nvm-sh, a .nvmrc file selects the project version. Restore dependencies from its lockfile, and reinstall global tools if needed.
On Windows, nvm-windows documents PATH and link conflicts with standalone installations. Confirm the setup before removing one.
Node’s release schedule recommends supported LTS lines for production. EOL releases no longer receive Node project security fixes.
Conclusion
Match the manager to the shell and verify the selected release before rebuilding dependencies. For background, see what Node.js is and the Node.js tutorial. Check the official release schedule before using an older line in production.
FAQ
These quick answers cover common platform and project questions about moving to an earlier Node release.
How do I downgrade Node.js on Windows?
Install nvm-windows, install the requested Node version, run nvm use with that version, then check node -v and where node in the same terminal.
Can I use npm to downgrade Node.js?
npm installs JavaScript packages. Use a Node version manager such as nvm-sh or nvm-windows to install and switch the Node runtime.
Why does node -v still show the old version?
A different Node executable may come first on PATH, or the app may run in another terminal or environment. Check command -v node on POSIX or where node on Windows.




