【问题标题】:Meteor on windows - Server crashes on code pushWindows 上的 Meteor - 代码推送时服务器崩溃
【发布时间】:2013-05-31 21:50:07
【问题描述】:

我从这里为 Windows 安装了 Meteor: http://win.meteor.com

几乎每次我尝试进行实时代码推送时,服务器都会崩溃。

然后我必须结束 mongod.exe 进程并运行“流星重置”和“流星”以重新启动它。

这里是日志:

=> Meteor server restarted
events.js:71
        throw arguments[1]; // Unhandled 'error' event
                       ^
Error: This socket is closed.
    at Socket._write (net.js:519:19)
    at Socket.write (net.js:511:15)
    at Socket.HttpProxy.proxyWebSocketRequest.reverseProxy.incoming.socket.on.listeners.onOutgoing (C:\Program Files\Meteor\lib\node_modules\http-proxy\lib\node-http-proxy\http-proxy.js:515:35)
    at Socket.EventEmitter.emit (events.js:96:17)
    at TCP.onread (net.js:397:14)

有人在同一条船上吗?我从这里https://github.com/meteor/meteor/issues/513 读到,这已经是一个开放的问题超过 6 个月了。

有人有任何解决方法吗?帮助表示赞赏。

【问题讨论】:

  • 这太烦人了...不敢相信他们还没有官方的 Windows 支持。我总是删除.meteor\local\db 中的mongod.lock 以重新启动服务器。 (不擦除数据库)

标签: javascript node.js meteor


【解决方案1】:

EADDRINUSE 问题已在 0.6.3.1-rev4 中修复,但请更新至 0.6.4 版本,因为此问题似乎已通过更新 http-proxy 包解决了其他问题。

有关 MSI 下载,请参阅 https://github.com/sdarnell/meteor/wiki/Windows

也应该很快出现在http://win.meteor.com

【讨论】:

    【解决方案2】:

    这是适用于流星的 Windows 的一个已知问题:https://github.com/sdarnell/meteor/issues/7。流星的 github repo 上的那个也可能是相关的。我也有!希望他们尽快解决!只需 ctrl+c 在编辑代码之前停止服务器,并在完成后将其恢复。

    即使您在此之后启动它,有时您也可能会收到 ADDRINUSE 错误,这非常令人沮丧。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-07-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-11
      • 1970-01-01
      相关资源
      最近更新 更多