arunoda / laika

testing framework for meteor
http://arunoda.github.io/laika/
MIT License
242 stars 38 forks source link

Cannot file module .meteor/release/METEOR@0.9.1.release.json #140

Closed ido-ran closed 9 years ago

ido-ran commented 10 years ago

I'm following this this tutorial and when I try to run Laika test I get the output bellow.

I'm new to meteor and Laika so I might configure something wrong.

  injecting laika...
  loading phantomjs...
  loading initial app pool...
  cleaning up injected code

module.js:340
    throw err;
          ^
Error: Cannot find module '/Users/me/.meteor/releases/METEOR@0.9.1.release.json'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.getMeteorToolsPath (/usr/local/lib/node_modules/laika/lib/helpers.js:33:18)
    at Object.getMeteorNode (/usr/local/lib/node_modules/laika/lib/helpers.js:43:35)
    at Object.getMeteoriteNode (/usr/local/lib/node_modules/laika/lib/helpers.js:59:20)
    at detectConfig (/usr/local/lib/node_modules/laika/lib/app_pool.js:83:35)
    at new AppPool (/usr/local/lib/node_modules/laika/lib/app_pool.js:16:19)
    at /usr/local/lib/node_modules/laika/bin/_laika:90:17
jasperkennis commented 10 years ago

Got the same problem. It's because it's looking in the wrong folder I guess, but I can't figure out how to use the path filter argument.

dfucci commented 9 years ago

Got the same with meteor v 0.9.1.1 and Laika 0.3.9

lacco commented 9 years ago

Looks like a change in Meteor >= 0.9.0 doesn't generate the expected file anymore for current Meteor version. I am on Meteor 0.9.2 and get Cannot find module '/Users/xxx/.meteor/releases/METEOR@0.9.2.1.release.json'.

I have the following files:

> ls ~/.meteor/releases/
0.8.3.notices.json
0.8.3.release.json
0.9.1.1.release.json
latest -> 0.9.1.1.release.json
jwjames commented 9 years ago

+1 I also have this problem.

jwjames commented 9 years ago

I uninstalled and reinstalled meteor and it appears that there is no releases file for 0.9.2.

apendua commented 9 years ago

@ido-ran @jwjames Please try out my branch. This should already work now.

dfucci commented 9 years ago

upgraded today to 0.9.3 and tried @apendua branch
Now laika gets stuck at loading phantomjs

apendua commented 9 years ago

@dfucci Are you sure the development bundle is not being downloaded in the background?

apendua commented 9 years ago

@dfucci I have tried it locally and it works just fine with 0.9.3. If you're expecting problems they might be cause by something else, like updating packages or something.

dfucci commented 9 years ago

@apendua do you mean the XCode Command Line Tools? These are already installed.
Just tried on an freshly created meteor project and still got

Cannot find module '/Users/dfucci/.meteor/releases/METEOR@0.9.3.release.json'
apendua commented 9 years ago

@dfucci If laika is trying to look for that file it means you're not using the latest version. I can see that @arunoda has already published a new version to the npm repository, so you may want to update your installation.