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? (ie 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? (ie not the REPL)
By default node package is nodejs, so use
or
You can make a link using
then u can use
or
If you want to check in command prompt use node -v or node --version
If u have node.exe then in node you can give.
find the installed node version.
or
And if you want more information about installed node(i.e. node version,v8 version,platform,env variables info etc.)
then just do this.
where The process object is a global that provides information about, and control over, the current Node.js process.
The command line for that is:
Or
Note:
If
node -v
doesn't work, butnodejs -v
does, then something's not set up quite right on your system. See this other question for ways to fix it.