practicalmeteor / spacejam

Depreciated - An npm package to run your meteor package tinytests and mocha tests from the command line with phantomjs.
https://www.npmjs.org/package/spacejam
MIT License
47 stars 23 forks source link

Any idea why this build fails with "Unhandled 'error' event"? #36

Closed dandv closed 9 years ago

dandv commented 9 years ago

https://travis-ci.org/Wylio/meteor-mandrill/builds/71746610

$ node_modules/.bin/spacejam --mongo-url mongodb:// test-packages ./
spacejam: spawning meteor
spacejam: killing meteor
events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn ENOENT
    at errnoException (child_process.js:1011:11)
    at Process.ChildProcess._handle.onexit (child_process.js:802:34)
The command "node_modules/.bin/spacejam --mongo-url mongodb:// test-packages ./" exited with 8.
dandv commented 9 years ago

So the meteor executable wasn't found.

Turns out Travis moved to a container-based architecture, and Meteor needed sudo to write its launcher script.

Adding meteor to $PATH fixed the problem.

Would be nice if spacejam gave a more explicit error message for meteor not being found.