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!” to work, even though I think it must be a problem with the runtime and 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". 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.

Now I get the “sys to util” message mentioned above, a message about the server starting on port 8080 and then a 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!

Problem courtesy of: Hugo

Solution

Found the problem: I had another application running on the same default port (8080) of Bogart, changed the port and everything worked.

Solution courtesy of: Hugo

稿源:Node.js Recipes (源链) | 关于 | 阅读提示

本站遵循[CC BY-NC-SA 4.0]。如您有版权、意见投诉等问题,请通过eMail联系我们处理。
酷辣虫 » 前端开发 » Bogart in NodeJS 0.6.10 on Windows Fails to start with message about ‘sys’ module

喜欢 (0)or分享给?

专业 x 专注 x 聚合 x 分享 CC BY-NC-SA 4.0

使用声明 | 英豪名录