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
Node:
node --version or node -v
node --version
node -v
npm:
npm --version or npm -v
npm --version
npm -v
V8 engine version:
node -p process.versions.v8