javascript - First time using node.js - "ReferenceError: node is not defined" -


i installed node.js. tried writing node -v should check version - , it's not working. output:

 > node -v referenceerror: node not defined   @ repl:1:2 @ replserver.self.eval (repl.js:110:21)   @ interface.<anonymous> (repl.js:239:12)   @ interface.emit (events.js:95:17)   @ interface._online (readline.js:202:10)   @ interface._line (readline.js:531:8)   @ interface._ttywrite (readline.js:760:14)   @ readstream.onkeypress (readline.js:99:10)   @ readstream.emit (events.js:98:17)   @ emitkey (readline.js:1095:12) > 

i opened using git - command: node

i tried running using "git", thought maybe that's issue , exact same output.

i using windows 8 if it's relevant - followed tutorial till now:

https://www.youtube.com/watch?v=tlnte8fe6u4

http://youtu.be/fqmiyth9wsg

how make work?

it looks have entered node repl , typed node -v

the news means node working!

to check version here can type process.version node version. alternatively type process.exit() exit node repl , bash (or equivalent terminal).

from here node -v should output node version.


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -