Urucas / cordova-test

cli-tool to automate Appium tests suite for Cordova apps
MIT License
6 stars 8 forks source link

Cannot find module '../dist/CDVAutomator.js' #15

Open ghost opened 8 years ago

ghost commented 8 years ago

On a MacOS, installed with sudo npm install -g cordova-test, after I run: cordova-test and it says:

Error: Cannot find module '../dist/CDVAutomator.js'
    at Function.Module._resolveFilename (module.js:339:15)
    at Function.Module._load (module.js:290:25)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (/usr/local/lib/node_modules/cordova-test/bin/cli:19:20)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Function.Module.runMain (module.js:447:10)
ghost commented 8 years ago

I think the problem is in bin/cli, where it says require('../dist/CDVAutomator.js'),

ghost commented 8 years ago

should be the same cause as #16