I've had Nightwatch running locally (OS X) for a few days and wanted to get it installed on an upstream CI server (Ubuntu 12.04). All seems to go well and the module is installed globally, but when I try to run my tests I get the following:
Error: Cannot find module 'nightwatch/bin/runner.js'
The runner exists at /usr/lib/node_modules/nightwatch/bin/runner.js. My test runner (nightwatch.js) contains the following, as recommended for Linux and OS X:
#!/usr/bin/env node
require('nightwatch/bin/runner.js');
Any idea what I might be missing here? It may be worth noting that this is a headless Ubuntu CI server on AWS. I don't know whether that will suffice for the Selenium driver(s), but I'm prepared to migrate to BrowserStack if it's not. It doesn't seem like this would impact Nightwatch's ability to find the runner, but this is my first spin with using it for integration tests so I'm all too prepared to be wrong.
Any insight would be much appreciated.