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

Running 'node server.js' in 'host' generates Error #13

Open
sscholle opened this issue Mar 9, 2018 · 2 comments
Open

Running 'node server.js' in 'host' generates Error #13

sscholle opened this issue Mar 9, 2018 · 2 comments

Comments

@sscholle
Copy link

sscholle commented Mar 9, 2018

`/nodeCQRS/node_modules/socket.io/lib/store.js:35
Store.prototype.proto = EventEmitter.prototype;
^

TypeError: Cannot read property 'prototype' of undefined
at Object. (/Users/seb/repo/CQRS/nodeCQRS/node_modules/socket.io/lib/store.js:35:42)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object. (/Users/seb/repo/CQRS/nodeCQRS/node_modules/socket.io/lib/manager.js:16:13)
at Module._compile (module.js:643:30)`

$ node -v
v8.9.4
$ npm -v
5.6.0
@jeson114
Copy link

jeson114 commented Jul 3, 2018

+1
This seems to be a compatibility difference socket.io and node v8.9.4 .EventEmitter is deprecated in high version of node . So upgrading socket.io to latest makes sense .
P.S socket.io has some changes to it's apis during 0.9 -> latest

@jamuhl
Copy link
Owner

jamuhl commented Jul 3, 2018

Not using this anymore...feel free to update and provide a PR

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

3 participants