I installed node.js successfully, but can't check it by cmd: node -v
-> 'node' is not recognized as an internal or external command, operable program or batch file.
I installed node.js successfully, but can't check it by cmd: node -v
-> 'node' is not recognized as an internal or external command, operable program or batch file.
full step to checking the node.
local@host:~$ node --version
v9.8.0
local@host:~$ npm -v
6.8.0
After this , create a js file (hello.js) and write below code on that file.
console.log("node is installed and running!");
Now run that file:
local@host:~$ node hello.js
node is installed and running!