To check your Node.js version on Windows, open Command Prompt or PowerShell and run node -v (or node --version). That prints the installed version, for example v20.11.1. If you also need the bundled npm version, run npm -v. If the command returns an error, Node.js is either not installed or not on your PATH, and the troubleshooting section below walks through the fix.
What You'll Need
- A Windows PC with Command Prompt or PowerShell available (both are built into Windows 10 and 11).
- Node.js installed if you expect a version number back. You can install it from the official Node.js website using the Windows installer.
- No administrator rights are needed just to check a version.
Step-by-Step
- Open a terminal. Press the Windows key, type
cmd, and press Enter to open Command Prompt. Alternatively, typepowershelland press Enter. Either works for this check. If you use Windows Terminal, open a new Command Prompt or PowerShell tab. - Run the version command. Type
node -vand press Enter. The short flag-vand the long flag--versionboth work. You should see output likev20.11.1on its own line. - Read the result. The leading
vis part of Node's output, not something you typed. The three numbers are major, minor, and patch versions. A result starting withv18,v20, orv22means you have a current long-term-support or current release line; older majors still work but may lack newer features. - Check npm as well if you need it. Type
npm -vand press Enter. npm ships with Node.js, so this confirms the package manager is available too. The npm version number is separate from the Node version and does not need to match it. - Confirm where Node is installed (optional). Run
where nodein Command Prompt orGet-Command nodein PowerShell. This shows the full path to the executable, which is useful when you have more than one Node installation or a version manager in play. - Close the terminal when done. No changes were made, so there is nothing to undo.
Menu and window labels can differ slightly by Windows version and region, but the commands themselves are the same on Windows 10 and Windows 11.
Common Mistakes
- Typing the command into the wrong place. Running
node -vinside the Node.js REPL (the>prompt) or inside a text editor does nothing useful. Use Command Prompt or PowerShell. - Expecting
node --versionto update Node. It only reports the version. Updating requires a separate installer or a version manager. - Confusing Node and npm versions. They are different numbers. A mismatch is normal and not a sign of a broken install.
- Assuming an error means Node is broken. The most common cause is that Node is not on the PATH, especially after a manual or portable install.
- Running the check in a different shell than the one you configured. If you set up Node in PowerShell but test in Command Prompt (or vice versa), the PATH may not be the same.
Tips
- Use
node -vfor a quick check andnode --versionwhen you want the command to be self-documenting in a script or notes. - If you switch Node versions often for different projects, a version manager such as nvm-windows or fnm can switch versions per terminal session. After switching, re-run
node -vto confirm the active version. - Pin the expected Node version in your project's
package.jsonunder anenginesfield so teammates know what to install. - Keep the terminal window open while you work; closing and reopening it is the quickest way to pick up PATH changes after an install.
- If you use Git Bash or another shell, the same
node -vcommand works, but PATH handling can differ from Command Prompt.
Troubleshooting
If node -v returns 'node' is not recognized as an internal or external command (Command Prompt) or The term 'node' is not recognized (PowerShell), work through these checks in order.
- Close and reopen the terminal. Installers update the PATH, but already-open terminals keep the old environment. A fresh window often fixes it immediately.
- Confirm Node is actually installed. Look for the Node.js folder in
C:\Program Files\nodejs. If it is missing, download the Windows installer from the official Node.js site and run it, accepting the option to add Node to the PATH. - Check the PATH. In Command Prompt, run
echo %PATH%; in PowerShell, run$env:PATH. Look for the Node.js install folder. If it is absent, open System Properties > Advanced > Environment Variables and add the folder to the Path variable, then reopen the terminal. - Check for a conflicting installation. Run
where node. If it points somewhere unexpected, an older or portable copy may be shadowing the intended one. Remove the stale entry from PATH or uninstall the old copy. - Reinstall as a last resort. Uninstalling and reinstalling Node.js from the official installer restores the expected PATH entry. This does not delete your project files, but global npm packages may need reinstalling.
If the command prints a version but your project fails to start, the problem is usually the project's dependencies or a version mismatch, not the Node install itself. Compare the printed version against the version your project expects.
Frequently Asked Questions
What is the exact command to check the Node.js version on Windows?
Open Command Prompt or PowerShell and run node -v. The long form node --version gives the same result.
Why does node -v say it is not recognized?
Node.js is not installed, or its install folder is not on the PATH. Reopen the terminal first, then reinstall using the official Windows installer if the error persists.
How do I check the npm version?
Run npm -v. npm is bundled with Node.js, so it should be present whenever Node is installed correctly.
Does node -v work in PowerShell as well as Command Prompt?
Yes. The command is the same in both shells. Only the syntax for inspecting PATH differs.
Can I have more than one Node.js version installed on Windows?
Yes, but the simplest reliable way is a version manager such as nvm-windows or fnm. Without one, multiple installs can conflict, and node -v reports whichever copy appears first on the PATH.
Does checking the version change anything on my PC?
No. node -v only reads and prints the version number; it does not install, update, or modify files.