javascript - Nodejs not running - Stack Overflow

recently I installed Nodejs on Windows 7 and it was working perfectly. Few days ago it stops running we

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
Add a ment  | 

2 Answers 2

Reset to default 8

Don'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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745498713a4630313.html

相关推荐

  • javascript - Nodejs not running - Stack Overflow

    recently I installed Nodejs on Windows 7 and it was working perfectly. Few days ago it stops running we

    4小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信