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

EventEmitter undefined Error #5

Open
sherlockholmes opened this issue Aug 23, 2012 · 4 comments
Open

EventEmitter undefined Error #5

sherlockholmes opened this issue Aug 23, 2012 · 4 comments

Comments

@sherlockholmes
Copy link

Hi,

When I try to run " node srv.web.js", showme that error.

/noduino/node_modules/requirejs/bin/r.js:1902
throw err;
^
Error: Evaluating duino/lib/board.js as module "duino/lib/board.js" failed with error: TypeError: Cannot read property 'EventEmitter' of undefined
at Function.req.load (/noduino/node_modules/requirejs/bin/r.js:2243:23)
at Object.context.load (/noduino/node_modules/requirejs/bin/r.js:1755:21)
at Object.Module.load (/noduino/node_modules/requirejs/bin/r.js:1032:29)
at Object.Module.fetch(/noduino/node_modules/requirejs/bin/r.js:1022:66)
at Object.Module.check (/noduinonode_modules/requirejs/bin/r.js:1054:26)
at Object.Module.enable (/noduino/node_modules/requirejs/bin/r.js:1316:22)
at Object.context.enable (/noduino/node_modules/requirejs/bin/r.js:1608:39)
at Object.Module.enable.mod (/noduino/node_modules/requirejs/bin/r.js:1301:33)
at g (/noduino/node_modules/requirejs/bin/r.js:234:23)
at each (/noduino/node_modules/requirejs/bin/r.js:163:31)

What you think about it?

Helpme pls, I'm new whit nodeJS xD

@rounaksingh
Copy link

hey i m also receiving this error ......although i installed noduino & sub-modules, explicitly, more than two times..I m running node.js 0.6.6......plz help semu

@mysterlune
Copy link

i'm getting this error, too. just trying to fire up the test.blinkLED.js example.

if you're getting this error when starting srv.web.js, take a look at the call to require duino's board.js module in:

noduino/public/scripts/libs/Noduino.Serial.js

... around line 42:

var Board = require('../../duino/lib/board.js');

... is expecting duino to be installed in a specific location. it seems that this relative path is correct if you are running the tests in "examples", but it's wrong if you're starting a server in the main directory.

try removing one of the "../" from the path, then try to start srv.web.js

@rounaksingh
Copy link

thanks for suggestion mysterlune............i am going to try it........

@hugocruz
Copy link

mysterlune, that did it.

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

4 participants