fzaninotto / uptime

A remote monitoring application using Node.js, MongoDB, and Twitter Bootstrap.
http://fzaninotto.github.com/uptime/
MIT License
3.62k stars 707 forks source link

TypeError: Cannot read property 'prototype' of undefined #369

Open flograsso opened 5 years ago

flograsso commented 5 years ago

I Have the following error when i execute "node app" coomand

TypeError: Cannot read property 'prototype' of undefined at Object. (C:\Users\SoporteSEM\Downloads\uptime-3.1\uptime-3.1\n ode_modules\socket.io\lib\transports\websocket\hybi-07-12.js:442:43) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object. (C:\Users\SoporteSEM\Downloads\uptime-3.1\uptime-3.1\n ode_modules\socket.io\lib\transports\websocket\index.js:7:6) at Module._compile (module.js:652:30)

yanivsetton commented 5 years ago

I also facing with this issue, any updates regarding this?

keshrisohit commented 5 years ago

i am also facing the same issue.

almgwary commented 5 years ago

same issue, you need to upgrade the project code for latest node and socket.io version

yanivsetton commented 5 years ago

make sure to install mongodb and websockio global, or if you can run this as a docker container curl -L https://github.com/IFSight/uptime/raw/master/run | sh the docker-compose file is located under /usr/local/docker-uptime, this is the easiest method to get this running

diveyez commented 5 years ago

It needs to be hardcoded for patching this. Cannot be done without developmental procedures.

Myzel394 commented 2 years ago

I'm also facing this issue 2,5 years later - any solution so far? Tried @yanivsetton but it didn't work.