DEV Community

Elightwalk Technology
Elightwalk Technology

Posted on

How to Check Node.js Version in Command Prompt (Windows Guide)

Wondering how to check Node.js version in cmd? This simple node version check guide shows the node version check command for Windows. Use the node version command like node -v to verify instantly.

Open Command Prompt on Windows

  1. How to check node version in cmd starts with launching Command Prompt.
  2. Press Windows key + R, type cmd, and press Enter.
  3. PowerShell works too—just search for it in the Start menu.

Node Version Check Command

  • The easiest node version command is node -v.
  • Type node -v and press Enter; it displays output like v22.3.0.
  • This node version check confirms Node.js installation quickly.

Alternative Ways to Check Node Version

  • The easiest node version command is node -v.
  • Type node -v and press Enter; it displays output like v22.3.0.
  • This node version check confirms Node.js installation quickly.

Check npm Version Alongside Node.

  • Node.js installs npm, so run npm -v for its version.
  • This pairs perfectly with your node version check command.​

Troubleshooting: Node Not Recognized Error

If 'node' is not recognized during how to check node version in cmd, Node.js isn't in PATH.

  • Download/install from nodejs.org.​
  • Add C:\Program Files\nodejs to System PATH via Environment Variables.​
  • Restart CMD.​

Why Check Node Version Regularly?

Use the node version command before projects to avoid compatibility issues.
Latest versions (e.g., v22+) offer better performance.​

Update Node.js if Needed

After node version check, update via nodejs.org installer or NVM for Windows.
Run nvm list if using NVM.​

Need a Node.js expert for your project? Hire Node.js developer today—fast, reliable, and project-ready! Contact us now.

Top comments (0)