TestArmada / magellan

Large Scale Automated Testing for Mocha, Nightwatch, Appium, Nodejs, etc
MIT License
287 stars 44 forks source link

Magellan not loading executors #225

Open jtheodore-rent opened 7 years ago

jtheodore-rent commented 7 years ago

Magellan was working fine for me until recently.

Now, however, when I attempt to run magellan, it fails to load my executors. I'm not sure what I changed that caused this to start happening, but this is the error I am getting:

[ERROR] [Magellan] There are errors in loading executors
[ERROR] [Magellan] Error: Cannot find module './lib/executor'
[ERROR] [Magellan] Error: Cannot find module './lib/executor'

This is what my magellan.json looks like:

{
  "framework": "testarmada-magellan-nightwatch-plugin",
  "executors": [
    "testarmada-magellan-saucelabs-executor",
    "testarmada-magellan-local-executor"
  ]
}

Kind of stuck since the error message doesn't tell me much - please help.

archlichking commented 7 years ago
[ERROR] [Magellan] Error: Cannot find module './lib/executor'
[ERROR] [Magellan] Error: Cannot find module './lib/executor'

Magellan executors are supposed to be installed via npm. My guess is the whole npm install failed because each executor will do "postinstall": "npm run build" to create ./lib folder inside its own folder in ./node_modules/magellan-xxx-executor after a successful npm install. Please delete ./node_modules and do a fresh npm install.