1

使用节点 server.js 启动服务器时出现错误。错误详情在这里:

path.existsSync is now called `fs.existsSync`.
info  - socket.io started
[Thu, 02 Aug 2012 00:58:27 GMT] INFO Tower development server listening on port 3000
[Error: Target script does not exist: node_modules/design.io/bin/design.io]

/Users/Drew/test/desert-level-pets/node_modules/tower/lib/tower/server/store/mongodb/database.js:39
            throw error;
                ^
Error: failed to connect to [127.0.0.1:27017]
    at Server.connect.connectionPool.on.server._serverState (/Users/Drew/test/desert-level-pets/node_modules/mongodb/lib/mongodb/connection/server.js:473:73)
    at EventEmitter.emit (events.js:115:20)
    at connection.on._self._poolState (/Users/Drew/test/desert-level-pets/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:92:15)
    at EventEmitter.emit (events.js:91:17)
    at Socket.errorHandler (/Users/Drew/test/desert-level-pets/node_modules/mongodb/lib/mongodb/connection/connection.js:387:10)
    at Socket.EventEmitter.emit (events.js:88:17)
    at Socket._destroy.self.errorEmitted (net.js:329:14)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9

谁能帮我解决它?谢谢,

4

1 回答 1

1

您需要确保您有一个 mongodb 实例启动并运行。此外,您是否在尝试运行“tower server”的目录中运行“npm install”来安装 design.io 和所有其他包 tower 需要?看起来这是问题的一部分。

于 2012-08-03T02:43:27.513 回答