[GH-ISSUE #184] Problems with socket.io #151

Closed
opened 2026-02-26 05:31:28 +03:00 by kerem · 2 comments
Owner

Originally created by @tamasgal on GitHub (Oct 19, 2016).
Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/184

I am not a nodejs expert at all, so I am not sure how this is related to log.io or socket.io, or an incompatibility of my nodejs installation.

I was running log.io-server without any problems and after a a few weeks I wanted to power it on again, however now it shows this error when I want to launch it:

tgal@pi2089:~
19:46:21 > log.io-server
/usr/local/lib/node_modules/log.io/node_modules/socket.io/lib/store.js:35
Store.prototype.__proto__ = EventEmitter.prototype;
                                        ^

TypeError: Cannot read property 'prototype' of undefined
    at Object.<anonymous> (/usr/local/lib/node_modules/log.io/node_modules/socket.io/lib/store.js:35:41)
    at Module._compile (module.js:573:32)
    at Object.Module._extensions..js (module.js:582:10)
    at Module.load (module.js:490:32)
    at tryModuleLoad (module.js:449:12)
    at Function.Module._load (module.js:441:3)
    at Module.require (module.js:500:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/local/lib/node_modules/log.io/node_modules/socket.io/lib/manager.js:16:13)
    at Module._compile (module.js:573:32)

I guess nodejs and/or socket.io was updated during the last weeks (I am running Mac OS X 10.9). The nodejs/npm version is:

tgal@pi2089:~
19:46:37 > node -v
v8.0.0-head
tgal@pi2089:~
19:47:23 > npm --version
3.10.8

socket.io@1.5.0

Is log.io not compatible with this version, or is any compatibility issue with the latest socket.io?

Any help would be appreciated. I really love log.io and I need it ;)

Originally created by @tamasgal on GitHub (Oct 19, 2016). Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/184 I am not a nodejs expert at all, so I am not sure how this is related to log.io or socket.io, or an incompatibility of my nodejs installation. I was running log.io-server without any problems and after a a few weeks I wanted to power it on again, however now it shows this error when I want to launch it: ``` tgal@pi2089:~ 19:46:21 > log.io-server /usr/local/lib/node_modules/log.io/node_modules/socket.io/lib/store.js:35 Store.prototype.__proto__ = EventEmitter.prototype; ^ TypeError: Cannot read property 'prototype' of undefined at Object.<anonymous> (/usr/local/lib/node_modules/log.io/node_modules/socket.io/lib/store.js:35:41) at Module._compile (module.js:573:32) at Object.Module._extensions..js (module.js:582:10) at Module.load (module.js:490:32) at tryModuleLoad (module.js:449:12) at Function.Module._load (module.js:441:3) at Module.require (module.js:500:17) at require (internal/module.js:20:19) at Object.<anonymous> (/usr/local/lib/node_modules/log.io/node_modules/socket.io/lib/manager.js:16:13) at Module._compile (module.js:573:32) ``` I guess nodejs and/or socket.io was updated during the last weeks (I am running Mac OS X 10.9). The nodejs/npm version is: ``` tgal@pi2089:~ 19:46:37 > node -v v8.0.0-head tgal@pi2089:~ 19:47:23 > npm --version 3.10.8 socket.io@1.5.0 ``` Is log.io not compatible with this version, or is any compatibility issue with the latest socket.io? Any help would be appreciated. I really love log.io and I need it ;)
kerem closed this issue 2026-02-26 05:31:28 +03:00
Author
Owner

@tamasgal commented on GitHub (Oct 19, 2016):

I installed the latest nodejs v6 and now it works again!

This is obviously the reason why it is not running on v8:

   info  - socket.io started
(node:58548) DeprecationWarning: process.EventEmitter is deprecated. Use require('events') instead.
<!-- gh-comment-id:254898497 --> @tamasgal commented on GitHub (Oct 19, 2016): I installed the latest nodejs v6 and now it works again! This is obviously the reason why it is not running on v8: ``` info - socket.io started (node:58548) DeprecationWarning: process.EventEmitter is deprecated. Use require('events') instead. ```
Author
Owner

@msmathers commented on GitHub (Jan 12, 2020):

This should be resolved using v0.4.3

<!-- gh-comment-id:573443123 --> @msmathers commented on GitHub (Jan 12, 2020): This should be resolved using v0.4.3
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/log.io-NarrativeScience-old#151
No description provided.