zoukankan      html  css  js  c++  java
  • Option path is not valid. Please refer to the README.

     使用pomelo创建的项目并且安装依赖项目之后启动项目如出现如下错误提示

    [2018-12-18 11:23:16.161] [ERROR] console - Option path is not valid. Please refer to the README.
    [2018-12-18 11:23:16.161] [ERROR] console - Option close timeout is not valid. Please refer to the README.
    [2018-12-18 11:23:16.161] [ERROR] console - Option heartbeats is not valid. Please refer to the README.
    [2018-12-18 11:23:16.161] [ERROR] console - Option log level is not valid. Please refer to the README.

    问题原因和解决方式

      原因:新版的socket.io用法不正确的导致的,官方早已修复,就是没有publish到npm包中

      修复方式:把node_modules目录下的pomelo中sioconnector.js(../game-server/node_modules/pomelo/lib/connectors/sioconnector.js

                       替换为 https://github.com/NetEase/pomelo/blob/master/lib/connectors/sioconnector.js

     替换后再启动game-server,就没有这些错误提示了

  • 相关阅读:
    CF Round433 B. Jury Meeting
    CF Round433 C. Planning
    繁忙的都市
    联络员
    组合数模板
    Rinne Loves Xor
    [SDOI2016]齿轮
    水题(water)
    Music Problem
    小H和游戏
  • 原文地址:https://www.cnblogs.com/ring1992/p/10136188.html
Copyright © 2011-2022 走看看