开发者

error while running node.js program

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 b开发者_JS百科uilt
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


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.


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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜