【发布时间】:2013-12-24 07:15:13
【问题描述】:
参考homepage 和documentation,我安装了node.js,创建了example.js 并运行了脚本。但我得到了 3 个点 (...),没有别的。我应该去哪里看?
> node example.js
...
在 Windows 7 x64 上运行
【问题讨论】:
-
你的意思是“Hello World”的示例节点http服务器吗?
> node example.js Server running at http://127.0.0.1:8124/?这是吗? -
@atupal 我刚刚更新了我的问题。谢谢。是的,我期待 console.log 消息,但它没有出现。我应该把 example.js 文件放在哪里?即使在指定完整路径 D:/path/to/example.js 之后它也不起作用。
-
也许this question 有帮助。 :)
-
你可以在节点 REPL 中输入“.load example.js” :)
标签: node.js