简体   繁体   English

Windows上的NodeJS 0.6.10中的Bogart无法以有关“ sys”模块的消息开头

[英]Bogart in NodeJS 0.6.10 on Windows Fails to start with message about 'sys' module

I've been learning how to use Bogart (v 0.3.38) under NodeJS (Windows, v 0.6.10), but I can't even get the basic "hello world!" 我一直在学习如何在NodeJS(Windows,v.0.6.10)下使用Bogart(v.0.3.38),但是我什至无法获得基本的“ hello world!”。 to work, even though I think it must be a problem with the runtime and Bogart. 工作,即使我认为运行时和Bogart一定有问题。

I'm using the example listed here just try to make it run. 我正在使用此处列出的示例只是尝试使其运行。 At the beginning, I got this message: 一开始,我收到以下消息:

The "sys" module is now called "util". 现在,“ sys”模块称为“ util”。 It should have a similar interface. 它应该具有类似的界面。

Then I went through all the files in the folder I'm creating the app and change "sys" to "util" in the require statement, and that, for while, got ride of the message above, but then I started getting a message that said that bogart could not access the isRouter property of undefined , that's when I decided to use the "Hello World" example to see if I was doing something wrong. 然后,我遍历了要创建应用程序的文件夹中的所有文件,并在require语句中将“ sys”更改为“ util”,虽然有一段时间,但上面的消息仍然有效,但随后我开始收到一条消息那就是说bogart无法访问undefinedisRouter属性,那是我决定使用“ Hello World”示例来查看我做错了什么的时候。

Now I get the "sys to util" message mentioned above, a message about the server starting on port 8080 and then a stacktrace: 现在,我得到上面提到的“ sys to util”消息,有关服务器从端口8080开始的消息,然后是stacktrace:

The "sys" module is now called "util". It should have a similar interface.
Server running on port 8080

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
Error: listen EACCES
    at errnoException (net.js:646:11)
    at Array.0 (net.js:732:28)
    at EventEmitter._tickCallback (node.js:192:40)

Any clues of what might be wrong here? 关于这里可能有什么问题的任何线索?

As always, thanks in advance! 一如既往,预先感谢!

发现了问题:我在Bogart的相同默认端口(8080)上运行了另一个应用程序,更改了端口,一切正常。

就我而言,这是在更新MySQL配置后出现的mysql2连接错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM