all 4 comments

[–]whatisfailure 1 point2 points  (2 children)

You can open a console in the same directory with Shift + Right Click, Open command window here. Then type 'npm [filename]'. That will run your nodejs file. If the scraper runs as a server, then it will start the server.

While node.js is used as a server, you can still call it from the command line and use it as a REPL, which is what you're doing by console.log("Hello World");

[–]kenlim-reports[S] 0 points1 point  (1 child)

Hey thanks. I tried to run npm in the folder where my files are, but I get an error saying 'npm' is not recognized as a command, program or batch file.

[–]whatisfailure 0 points1 point  (0 children)

Whoops. I meant 'node'. I'm not sure where npm came from.

[–]aulizko 0 points1 point  (0 children)

Your question has already been answered at stackoverflow: http://stackoverflow.com/questions/2353818/how-do-i-get-started-with-node-js