jansmolders86 / mediacenterjs

A HTML/CSS/Javascript (NodeJS) based Media center
http://mediacenterjs.com
1.29k stars 243 forks source link

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

Open PraveenkumarDonga opened 7 years ago

PraveenkumarDonga commented 7 years ago

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

marcosgugs commented 7 years ago

+1

igorantun commented 7 years ago

+1

jansmolders86 commented 7 years ago

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!

ManuelAudibene commented 4 years ago

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