Adam Bubula
Adam Bubula

Reputation: 43

node.js can't check version after installation on windows 10

I installed node.js version 4.4.1 on windows 10 and I tried to code with tutorial from internet. The first thing recommended was to write "$ node -v", but after that i'm getting following error:

enter image description here

Upvotes: 1

Views: 2741

Answers (2)

Joseph
Joseph

Reputation: 119867

You're already in the Node REPL, not in Windows' cmd (see the Node icon in the title bar?). You can directly write JS in that.

To get the version, run node -v on Windows' cmd.

Upvotes: 1

elreeda
elreeda

Reputation: 4597

you cant check node version inside node REPL to check the node version you need to exit Node REPL, ctrl+c x2 then type node -v or lunch cmd and type node -v

Upvotes: 0

Related Questions