mediacenterjs icon indicating copy to clipboard operation
mediacenterjs copied to clipboard

Error while Running the Server:TypeError: Cannot read property 'prototype' of undefined

Open PraveenkumarDonga opened this issue 8 years ago • 4 comments

Hi! I have built the server from the source. while running it using command "node server" I am getting the bellow error. info: Starting server /home/smartron/mediacenterjs/node_modules/socket.io/lib/store.js:35 Store.prototype.proto = EventEmitter.prototype; ^ TypeError: Cannot read property 'prototype' of undefined

Could any one please help me with this? selection_014

PraveenkumarDonga avatar Feb 21 '17 11:02 PraveenkumarDonga

+1

marcosgugs avatar Feb 26 '17 23:02 marcosgugs

+1

igorantun avatar Mar 04 '17 17:03 igorantun

EventEmitter.prototype is deprecated in newer Node versions. I need to rewrite so it uses require('events'). A temp work around is to use a older Node version. Thanks for poiting this out!

jansmolders86 avatar Mar 08 '17 09:03 jansmolders86

Reading this in 2020 - sad face. I guess this will not happen?

ManuelAudibene avatar Mar 23 '20 22:03 ManuelAudibene