I installed all my software with npm
.
But running mocha, it does not seem to find the webdriverjs
module.
The only way to make it work, is by providing the full module path like this:
var webdriverjs = require('/var/www/mysite/linux/node/lib/node_modules/webdriverjs'),
client = {};
describe('my webdriverjs tests', function(){ ...
How can I make node modules path available to an application like mocha ?
Thanks