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?
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?
Share Improve this question asked Jan 8, 2012 at 20:05 Miguel JiménezMiguel Jiménez 1,3031 gold badge16 silver badges24 bronze badges 2- 3 +1 for including a screen-shot. Very clear. :-) – ruakh 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). – pimvdb Commented Jan 8, 2012 at 20:20
2 Answers
Reset to default 8Don't enter node<enter>
first. Also, you need quotes. When you've opened cmd, directly type node "C:\Users\Us Navy\..."
.
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.