How to check the installed version of Node.js
This post is out of date
This post has been migrated from my old blog. It may have broken links, or missing content.
Understanding your Node.js version is crucial for managing your software environment. Check it with these steps:
- Launch your Command Line Interface (CLI), be it Command Prompt, PowerShell, or Terminal.
- Type the following command and hit Enter:
- Your CLI will promptly display your current Node.js version. Note that the ‘v’ denotes ‘version’.
Most tutorials would stop here. But if you have a complex developer environment setup, what happens if that version number isn’t what you expect?
- Check where the
node
command is coming from
- If you’re expecting that path to be somewhere else, it could be due to your
PATH
, which tells the CLI where to look for commands/executables, and importantly, in what order:
- For instructions on how to update the
$PATH
value, see our blog post “How to permanently update your shell $PATH”.