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.
» npm install all-node-versions
Node.js version on the command line? (not the REPL) - Stack Overflow
node.js - nvm ls does not list specific installed version numbers - Stack Overflow
How do I list Node.js version and path currently being used in npm?
node.js - How to list all versions of an npm module? - Stack Overflow
Does updating Node.js also update NPM?
Can I have multiple Node.js versions installed at the same time?
What is the difference between node -v and npm -v?
Videos
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.
If you're referring to the shell command line, either of the following will work:
node -v
node --version
Just typing node version will cause node.js to attempt loading a module named version, which doesn't exist unless you like working with confusing module names.
nvm list
This command worked fine for me. It will list all the installed versions of node under nvm
This happens when you have installed node but not installed using nvm, you can install the versions again, by like
nvm install 12.14 where 12.14 is that particular version you wanna use.
and use it by nvm use 12.14.
I read somewhere that you can actually have those versions being managed by nvm itself, but I need to find it again, will update my answer when I find it.
» npm install check-node-version