最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Nodejs not running - Stack Overflow

programmeradmin2浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论