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
You can simply do
node --version
or short form would also do
node -v
If above commands does not work, you have done something wrong in installation, reinstall the node.js and try.