error while running node.js program

795 Views Asked by At

I am trying to implement this program on my window system but i am getting this error .

Administrator@rahul ~/nodepad
$ node app.js
native library not built
Express server listening on port 3000, environment: development
Using connect 0.5.9, Express 1.0.7, Jade 0.6.3

node.js:50
    throw e; // process.nextTick error, or 'error' event on first tick
    ^
Error: EPERM, Operation not permitted
    at Stream._onConnect (net.js:687:18)
    at IOWatcher.onWritable [as callback] (net.js:284:12)

Please suggest why this errror is coming .

Thanks

2

There are 2 best solutions below

5
On BEST ANSWER

Have you started a mongodb instance? Nodepad app requires a MongoDB database to work.

Get a precompiled package from http://www.mongodb.org, unzip and create a "data" directory. then run "mongod --dbpath ./data" from the bin dir (use your 'data' path).

Sometimes Node.js stacktraces are cryptic.

0
On

If you meant to say "my Windows system" and you have built a WIN32 version of node, then it is likely that the permissions related code has not yet been implemented.

I suggest that you try the Cygwin version. I have sucessfully built 0.5.0pre on Cygwin. If you don't have Cygwin, it is easy to install on XP or Win7. You don't need all of it, just the base install and the packages mentioned here: https://github.com/ry/node/wiki/Building-node.js-on-Cygwin-(Windows)