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

node v7 "old-style emitters" dependency issue #3

Open
strfry opened this issue Apr 5, 2017 · 0 comments
Open

node v7 "old-style emitters" dependency issue #3

strfry opened this issue Apr 5, 2017 · 0 comments

Comments

@strfry
Copy link

strfry commented Apr 5, 2017

I get this error when i try to run with node v7.8.0
What is going on here? Sorry, i'm new to this JS frontend world ;D
Anyway, the solution should be to update socket.io, according to chjj/tty.js#168
Please adjust the magic numbers in package.json accordingly. That would be greeaat! :DD

I fixed it temporary by editing EventEmitter = require('events'); instead of EventEmitter = process.EventEmitter into various source files in node_modules/socket.io :/

Thanks gracefully,
Jonathan

$ node secure_server.js 
/home/strfry/EWindow/ewindow_webrtc/node_modules/socket.io/lib/transports/websocket/hybi-07-12.js:449
Parser.prototype.__proto__ = EventEmitter.prototype;
                                         ^

TypeError: Cannot read property 'prototype' of undefined
[..]
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

1 participant