需要帮助来设置node.js

我只是在我的Windows系统上安装了最新的node.js v0.6.13安装程序。 现在我已经完成了这项工作,还需要做些什么。

我的nodejs驻留在我的程序文件(X86)文件夹中,而我的js文件位于c:\ inetpub \ www \ root文件夹中,但是当我打开node.exe并试图在wwwroot目录中运行js文件时,它什么也没做。 然后,我复制了js文件在nodejs文件夹内,并试图在控制台中运行js文件,出现以下错误:

ReferenceError:helloWorld没有定义

at repl:1:2 at REPLServer.eval (repl.js:80:21) at Interface.<anonymous> (repl.js:182:12) at Interface.emit (events.js:67:17) at Interface._onLine (readline.js:162:10) at Interface._line (readline.js:426:8) at Interface._ttyWrite (readline.js:603:14) at ReadStream.<anonymous> (readline.js:82:12) at ReadStream.emit (events.js:88:20) at ReadStream._emitKey (tty.js:327:10) 

我是新来的,所以对这个不太了解,有人可以用说明来回复这个工作。

谢谢!

基于这个错误,它看起来像你试图从REPL启动你的JS文件

 node.exe > hellowWorld 

如果你的代码在helloWorld.js ,你应该像这样运行它:

 node.exe helloWorld.js