Type `node file.js` all in one command at the main prompt. You're typing
`node` and then later typing `file.js`.
If you don't provide a filename on the command line, then Node will go into
the repl (read-eval-print-loop) where you can type JavaScript commands
(like your console.log command) and see the results right away.
However, "D:\dev\sources\autres\node\js\server.js" isn't a valid JavaScript
program, so it assumes that you've typed something incomplete and waits for
you. It does this so that when you type `function foo () {` you can add
more lines and then it'll eval it once you complete the function.
On Tue, Dec 11, 2012 at 10:23 AM, Laurent Rouleau <[email protected]
> wrote:
>
> <https://lh5.googleusercontent.com/-0ETv6_koenI/UMd56qMvrKI/AAAAAAAAA8E/WViW1VHQO8Q/s1600/console.png>
> I tried node.js this day. When i wrote "node myFile.js", the answer was
> "..." (cf screenshot).If someons has explanantion...
> Thanks
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> 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 post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en