0

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.

Til
  • 5,150
  • 13
  • 26
  • 34
quy pham
  • 51
  • 4
  • Possible duplicate of ['node' is not recognized as an internal or an external command, operable program or batch file while using phonegap/cordova](https://stackoverflow.com/questions/23412938/node-is-not-recognized-as-an-internal-or-an-external-command-operable-program) – Romil Patel May 23 '19 at 05:26

2 Answers2

-1

try to type it in the cmd: $ node --version

mae tanaka
  • 42
  • 6
-1

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!
Pankaj Chauhan
  • 1,623
  • 14
  • 12