Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node.js version on the command line? (not the REPL)

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 REPL)

like image 377
hawkeye Avatar asked Feb 15 '13 04:02

hawkeye


People also ask

How do I check node js version?

To see if Node is installed, open the Windows Command Prompt, Powershell or a similar command line tool, and type node -v . This should print the version number so you'll see something like this v0. 10.35 .

How can we check the current version of the node on CMD platform?

There are several ways to check the Node version you're using. You can use basic command line prompts, npmnpm is a software registry that serves over 1.3 million packages. npm is used by open source developers from all around the world to share and borrow code, as well as many businesses.


1 Answers

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.

like image 136
JohnnyHK Avatar answered Sep 20 '22 08:09

JohnnyHK