Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pomelo start error #23

Open
dongyado opened this issue Apr 14, 2017 · 8 comments
Open

pomelo start error #23

dongyado opened this issue Apr 14, 2017 · 8 comments

Comments

@dongyado
Copy link

pomelo version: 2.2.5
node version: v7.8.0

[2017-04-14 17:40:01.934] [INFO] pomelo - [/home/slayer/workspace/chatofpomelo-websocket/game-server/node_modules/._pomelo@1.2.0@pomelo/lib/application.js] application inited: "master-server-1"

/home/slayer/workspace/chatofpomelo-websocket/game-server/node_modules/._socket.io@[email protected]/lib/store.js:35
Store.prototype.proto = EventEmitter.prototype;
^

TypeError: Cannot read property 'prototype' of undefined
at Object. (/home/slayer/workspace/chatofpomelo-websocket/game-server/node_modules/._socket.io@[email protected]/lib/store.js:35:41)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/home/slayer/workspace/chatofpomelo-websocket/game-server/node_modules/._socket.io@[email protected]/lib/manager.js:16:13)
at Module._compile (module.js:571:32)

@liangmuren
Copy link

pomelo version: 2.2.5
node version: v8.2.1

Same error.

@willerce
Copy link

@liangmuren try to use node v5.x start the game server

@Sier-Kang
Copy link

python version

@elfstream
Copy link

pomelo version: 2.2.5
node version v8.9.4
Same error
the answer is here:
LearnBoost/websocket.io#55
For short answer just change this:
var EventEmitter = process.EventEmitter;
into this:
var EventEmitter = require('events');

@adocwang
Copy link

adocwang commented Mar 26, 2018

same error. but i find a way to fix.
open game-server/package.json. Just change pomelo's version in dependencies to a new version.
My is "pomelo": "2.2.5". works fine!

@yutiya
Copy link

yutiya commented Apr 15, 2018

"pomelo": "2.2.5"
手动将game-server改成2.2.5即可

@lita-jerry
Copy link

lita-jerry commented Aug 15, 2018

一,首先修改game-server文件夹内的package.json文件,pomelo版本改为2.2.5
二,参考下我写的切换Node版本的文章:Mac端更改、更新Node.js版本

安装Node.js 8.11.3版本
n 8

切换到8.11.3版本
n # 选择8.11.3

删除game-server文件夹内的 node_modules文件夹 和 package-lock.json文件

返回上一层执行
sh npm-install.sh

it's working now

@calmchang
Copy link

same error. but i find a way to fix.
open game-server/package.json. Just change pomelo's version in dependencies to a new version.
My is "pomelo": "2.2.5". works fine!

it`s work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants