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

error starting localserver.js #112

Closed
cortezthekiller opened this issue Dec 19, 2016 · 1 comment
Closed

error starting localserver.js #112

cortezthekiller opened this issue Dec 19, 2016 · 1 comment

Comments

@cortezthekiller
Copy link

Hi, I've installed node.js in an ARM Chromebook running Ubuntu 14.04 Crouton chroot. I've installed node.js v7.2.1
I've cloned coder from github but when I try to start the localserver I get the following error:

`/home/rodrigo/tmp/coder/coder-base/node_modules/socket.io/lib/store.js:35
 Store.prototype.__proto__ = EventEmitter.prototype;
                                    ^                                         
TypeError: Cannot read property 'prototype' of undefined
    at Object.<anonymous> (/home/rodrigo/tmp/coder/coder-base/node_modules/socket.io/lib/store.js:35:41)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/rodrigo/tmp/coder/coder-base/node_modules/socket.io/lib/manager.js:16:13)
    at Module._compile (module.js:571:32)

I'm not familiar with JavaScript prototypes. What could be wrong here? I've not touched the code, I'm just using the last version from GitHub

@cortezthekiller
Copy link
Author

Solved as per LearnBoost/websocket.io#55
process.EventEmitter is deprecated. use require('events') instead

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