1

我正在尝试在我的窗口系统上实现这个程序,但我收到了这个错误。

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)

请说明为什么会出现这个错误。

谢谢

4

2 回答 2

0

如果你说的是“我的Windows系统”,而你已经搭建了WIN32版本的node,那么很可能权限相关的代码还没有实现。

我建议你试试 Cygwin 版本。我已经在 Cygwin 上成功构建了 0.5.0pre。如果你没有 Cygwin,在 XP 或 Win7 上安装很容易。您不需要所有这些,只需要基本安装和此处提到的软件包:https://github.com/ry/node/wiki/Building-node.js-on-Cygwin-(Windows)

于 2011-02-21T05:12:01.240 回答
0

你有没有启动一个mongodb实例?Nodepad 应用程序需要 MongoDB 数据库才能工作。

从http://www.mongodb.org获取一个预编译包,解压并创建一个“data”目录。然后从 bin 目录运行“mongod --dbpath ./data”(使用您的“数据”路径)。

有时 Node.js 堆栈跟踪是神秘的。

于 2011-02-22T18:03:14.167 回答