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
By default node package is nodejs, so use
$ nodejs -v
or
$ nodejs --version
You can make a link using
$ sudo ln -s /usr/bin/nodejs /usr/bin/node
then u can use
$ node --version
$ node -v