I am trying to go through the Angular.js Tutrorial_00 and cannot seem to work out how to get the node.js web server to run the demo app?

Has anyone done this tutorial or know how correctly use this step to get the server working?

For node.js users: In a separate terminal tab or window, run node scripts\web-server.js to start the web server. Open a browser window for the app and navigate to http://localhost:8000/app/index.html

share|improve this question
What happens when you try following the instructions? – Quentin Mar 27 at 12:35
In node.js instance I run "node scripts\web-server.js" In chrome I nav to "localhost:8000/app/index.html"; I get a "Webpage is not avaliable" The project is in C:\Users\Owain\angular-phonecat\app I not sure how the server will know to access this location to sever up content? @Quentin – ojhawkins Mar 27 at 12:43
What is "node.js instance"? – Quentin Mar 27 at 12:45
When you run "node scripts\web-server.js", what is the output at the console? – Quentin Mar 27 at 12:45
"I not sure how the server will know to access this location to sever up content?" - If you're doing it right then "because that is what web-server.js is designed to do". – Quentin Mar 27 at 12:46
show 2 more comments

closed as not a real question by Quentin, Trott, Dave A, Royston Pinto, lc. 2 days ago

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.

1 Answer

up vote 1 down vote accepted

node scripts\web-server.js is a command line, not a piece of JavaScript.

Run it in a shell (on Windows that probably means PowerShell) while making sure you are in the right directory. Don't try to run it in a node REPL.

share|improve this answer
Thanks, ran in command prompt & changed to correct directory. Worked! – ojhawkins Mar 27 at 13:13

Not the answer you're looking for? Browse other questions tagged or ask your own question.