Amin Amin - 1 year ago 69
Node.js Question does not run on Mac as expected

I am using this tutorial series to make a chat messenger using, nodeJS and Mongodb on Mac OSX. according to the tutorial when we run server.js must start working but when I run the command:

node server.js

the terminal shows nothing:


var mongo = require('mongodb').MongoClient,
client = require('').listen(3000).sockets;

Answer Source

The default configuration of does not show anything on the debug console when you start it up. It used to be (in older versions of that the default configuration would show some startup messages, but that is no longer the case (I'm guessing that's what your tutorial shows).

So, I'd suggest you verify that the server is actually running by either connecting to it or by looking at the open sockets for your node.js process to see it listening.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download