4

recently I installed Nodejs on Windows 7 and it was working perfectly. Few days ago it stops running well, for example: if I write "node C:/dir/.../server.js" the console shows: "..." and do nothing.

I have checked the 80 port and it is free, can you please help me?

enter image description here

2
  • 3
    +1 for including a screen-shot. Very clear. :-) Commented Jan 8, 2012 at 20:15
  • You're currently in the Node shell trying to execute JavaScript code which isn't JavaScript (... means you have a syntax error). Commented Jan 8, 2012 at 20:20

2 Answers 2

8

Don't enter node<enter> first. Also, you need quotes. When you've opened cmd, directly type node "C:\Users\Us Navy\...".

Sign up to request clarification or add additional context in comments.

Comments

3

When you run the node executable without arguments it opens a repl useful for quick tinkering.

To run a file provide the file as the first argument.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.