On Nov 28, 2014, at 8:49 AM, Yadu nandan wrote:
> 
> node -v
> ferenceError: node is not defined
>   at repl:1:2
>   at REPLServer.self.eval (repl.js:110:21)
>   at Interface.<anonymous> (repl.js:239:12)
>   at Interface.emit (events.js:95:17)
>   at Interface._onLine (readline.js:202:10)
>   at Interface._line (readline.js:531:8)
>   at Interface._ttyWrite (readline.js:760:14)
>   at ReadStream.onkeypress (readline.js:99:10)
>   at ReadStream.emit (events.js:98:17)
>   at emitKey (readline.js:1095:12)
> 
> Please help me out in resolving this issue.

It sounds like you have started the node repl (the Read-Eval-Print-Loop: a way 
of running JavaScript line by line for testing purposes) by running "node" with 
no arguments, and have then typed "node -v" into the repl. "node -v" is not a 
valid JavaScript command, so it is understandable that you get an error that 
"node" is not defined.

It sounds like you don't actually want to be in the node repl, but are trying 
to run a shell command to display the version of node. In that case, exit the 
repl by pressing Control-D, then run "node -v".



-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/5F9A5608-96BF-4072-9145-3AEEB800128D%40ryandesign.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to