我刚刚安装了node.js。我尝试写入 node -v 来检查版本,但它没有起作用。这是输出:
> node -v ReferenceError: 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) >
我用git打开它-命令:node
我尝试使用“Git”运行它,以为这可能是个问题,但我得到了完全相同的输出。
如果相关的话,我正在使用Windows 8-目前为止已经遵循了这个教程:
https://www.youtube.com/watch?v=tlntE8fe6u4
我该如何让它工作?