The command line for that is:

node -v

Or

node --version

Note:

If node -v doesn't work, but nodejs -v does, then something's not set up quite right on your system. See this other question for ways to fix it.

Answer from JohnnyHK on Stack Overflow
🌐
BlueVPS
bluevps.com › blog › how to check node version [step-by-step guide]
Node Version: How to Check Node.js Version (Linux, Windows, Mac) — BlueVPS
Check your Node.js version using node --version or node -v command. Complete guide: how to find Node version on Linux, Windows & Mac, check if Node is installed, manage versions with NVM.
🌐
npm
npmjs.com › package › all-node-versions
all-node-versions - npm
March 29, 2025 - List all available Node.js versions. Latest version: 13.0.1, last published: a year ago. Start using all-node-versions in your project by running `npm i all-node-versions`. There are 5 other projects in the npm registry using all-node-versions.
      » npm install all-node-versions
    
Published   Mar 29, 2025
Version   13.0.1
Discussions

Node.js version on the command line? (not the REPL) - Stack Overflow
I want to get the version of Node.js on the command line. I'm expecting to run a command like: node -version but that doesn't work. Does anybody know what the command line would be? (i.e. not the ... More on stackoverflow.com
🌐 stackoverflow.com
node.js - nvm ls does not list specific installed version numbers - Stack Overflow
I recently ran an npm update that broke my Vue app. As a result, I am trying to revert my server to the previous version of Node/npm that it was using. However, when I run nvm ls I get the following More on stackoverflow.com
🌐 stackoverflow.com
How do I list Node.js version and path currently being used in npm?
I'm currently running into the same error as this Stackoverflow question had: SyntaxError: Use of const in strict mode?, although I'm getting it while trying to install Flux. I've already updated my More on stackoverflow.com
🌐 stackoverflow.com
node.js - How to list all versions of an npm module? - Stack Overflow
In order to see all the versions of a node module [webpack], I have executed below command in windows command prompt npm view webpack versions This command only displays first 100 versions and later More on stackoverflow.com
🌐 stackoverflow.com
People also ask

Does updating Node.js also update NPM?
When you install a new major version of Node.js, a compatible version of NPM is installed along with it. However, since NPM can be updated independently, newer versions may be available. After updating Node.js, always verify the active NPM version using npm -v.
🌐
monovm.com
monovm.com › 📚 tutorials 📚 › how to check node.js version on windows, macos & linux
How to Check Node.js Version on Windows, macOS & Linux
Can I have multiple Node.js versions installed at the same time?
Yes. With version management tools like NVM and FNM, you can install multiple Node.js versions separately and quickly switch between them using commands such as nvm use .
🌐
monovm.com
monovm.com › 📚 tutorials 📚 › how to check node.js version on windows, macos & linux
How to Check Node.js Version on Windows, macOS & Linux
What is the difference between node -v and npm -v?
node -v shows the version of the Node.js runtime, while npm -v displays the version of the package manager (NPM). These two have separate release cycles, and even though NPM is bundled with Node.js, their versions are not necessarily an exact match.
🌐
monovm.com
monovm.com › 📚 tutorials 📚 › how to check node.js version on windows, macos & linux
How to Check Node.js Version on Windows, macOS & Linux
🌐
GitHub
github.com › volta-cli › volta › issues › 1535
have a command that lists the versions of node.js installed on your computer · Issue #1535 · volta-cli/volta
July 17, 2023 - a bit like on the principle of nvm or n under linux with a command that displays the versions of node.js installed on his computer. Can change version in its terminal in addition to or in addition to the pin command which adds a node to ...
Author   Marcelin97
🌐
RisingStack
blog.risingstack.com › home › hírek, események › how to check node version
How to check Node version - RisingStack Engineering
May 29, 2024 - To only check your npm version, you can use the following command: ... NVM (Node Version Manager) is a bash script that allows you to manage multiple active versions of Node.js.
Find elsewhere
🌐
GitHub
gist.github.com › chranderson › b0a02781c232f170db634b40c97ff455
Useful NVM commands · GitHub
# install last LTS version and install global packages from "current" node version. # run "nvm list" to see if you have "current" alias and which version points to nvm install --lts --reinstall-packages-from=current # install specific version and install global packages from specific version nvm install 20.0.0 --reinstall-packages-from=18 ... Explore a comprehensive list of NVM commands by clicking on the text below. - ... Is this version installed on your machine? Check your default node version using "nvm alias default"
🌐
MonoVM
monovm.com › 📚 tutorials 📚 › how to check node.js version on windows, macos & linux
How to Check Node.js Version on Windows, macOS & Linux
December 16, 2025 - After installing nvm (which is typically used on macOS and Linux; on Windows you can use nvm-windows), you can list the Node.js versions installed on your system with the following command: ... This command lists all installed versions and marks the currently active one with an arrow (->).
🌐
npm
npmjs.com › package › check-node-version
check-node-version - npm
Latest version: 4.2.1, last published: 4 years ago. Start using check-node-version in your project by running `npm i check-node-version`. There are 147 other projects in the npm registry using check-node-version.
      » npm install check-node-version
    
Published   Nov 03, 2021
Version   4.2.1
🌐
Barrd
barrd.dev › home › articles › quicknote › find which node version an old project requires
Find which node version an old project requires : barrd.dev
January 18, 2025 - This means you’re left in a pickle as it’s unlikely a recent version will play nicely with old modules after any length of time… · The snippet below will work on an Apple Mac’s Terminal software, check the appropriate help files if you encounter an ‘invalid option‘ error. grep -hop '"node":.*' node_modules/*/package.json | sort · Run it after cd‘ing into the projects root, same level as the node_modules directory. You’ll see a list of all the versions that’ve been used, image below shows a small sample.
🌐
NVM Documentation
nvmnode.com › cli › node-all-versions.html
List of All Node Versions - NVM Documentation
In such cases, you need a list of Node.js version numbers to check which specific minor versions are available, so you can install the specific version you need with nvm. All historical versions are sourced from the Node Taobao mirror site: https://registry.npmmirror.com/binary.html?path=node/
🌐
NVM Commands
nvmnode.com › cli
NVM Commands - NVM Documentation
Optional parameter available shows all versions available for installation. list can be shortened to ls. nvm ls or nvm list: Shows installed node versions. ... nvm proxy [url]: Sets download proxy.
🌐
Educative
educative.io › answers › how-to-check-versions-of-node-and-express-using-cmd
How to check versions of Node and Express using cmd
Use node -v or node --version in the terminal to verify the installed Node.js version. Use npm -v or npm --version to verify the installed npm version. Navigate to your project directory and use npm list express to check the Express.js version ...
🌐
Medium
medium.com › @arunangshudas › managing-node-js-versions-with-nvm-node-version-manager-054a4588e303
Managing Node.js Versions with nvm (Node Version Manager) | by Arunangshu Das | Medium
June 30, 2024 - Once installed, you can start managing Node.js versions with nvm. Here are some common commands and their usage: To list all available Node.js versions for installation, use:
🌐
Node.js
nodejs.org › en › about › previous-releases
Node.js — Node.js Releases
The Node.js website provides several non-interactive installation methods, including command-line interfaces (CLIs), operating system (OS) package managers (e.g., brew), and Node.js version managers (e.g., nvm).
🌐
OneUptime
oneuptime.com › home › blog › how to detect and check node.js version programmatically
How to Detect and Check Node.js Version Programmatically
January 22, 2026 - # Node.js version node --version # or node -v # npm version npm --version # All versions (node, npm, v8, etc.) node -p "process.versions"
🌐
Nodejsdesignpatterns
nodejsdesignpatterns.com › blog › checking-node-js-version
How to check Node.js version and package manager versions
January 29, 2026 - The most straightforward way to check your Node.js version is using the --version or -v flag: ... To see all the compilation and runtime information, you can use the -p flag (short for --print), which evaluates a script and prints the result:
Authors   Mario CasciaroLuciano Mammino
Published   2024
Pages   660
Rating: 4.6 ​ - ​ 780 votes
🌐
Quora
quora.com › How-do-I-check-the-version-of-Node-js-and-npm-installed-on-my-machine
How to check the version of Node.js and npm installed on my machine - Quora
... Do Windows+R and type cmd to open command prompt. Then for version type node -v for node version and npm -v for npm version. You can always use node -help to see what all commands you can use.