admin管理员组文章数量:1429818
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.
本文标签: javascriptNodejs not runningStack Overflow
版权声明:本文标题:javascript - Nodejs not running - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745498712a2660929.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论