Closed alxhotel closed 8 years ago
This error looks like you're using an old version of node.js, probably 0.10. Try upgrading to at least v4. You can do that here: https://nodejs.org/en/
It fails because the code contains:
var EventEmitter = require('events')
But this used to be required in old node.js:
var EventEmitter = require('events').EventEmitter
Also, a more important issue to keep in mind: this package doesn't work in node.js. It's meant for the browser.
Oh yeah, that was the problem. Thanks.
It breaks just doing a require
Trace:
Any ideas ?