title: Nightmare.js not working as expected on Ubuntu Linux cloud server
body: <p>I can't seem to get nightmare.js to work on an Ubuntu Linux 14.04 server [via DigitalOcean].</p>
  
  <p>I've installed PhantomJS (1.9.8) and Node (4.2.4), and they are working well as far as I can tell. </p>
  
  <p>For example, when I run this:</p>
  
  <pre><code>phantomjs loadspeed.js http://www.yahoo.com
  </code></pre>
  
  <p>with loadspeed.js containing this:</p>
  
  <pre><code>"use strict";
  var page = require('webpage').create(),
      system = require('system'),
      t, address;
  
  if (system.args.length === 1) {
      console.log('Usage: loadspeed.js &lt;some URL&gt;');
      phantom.exit(1);
  } else {
      t = Date.now();
      address = system.args[1];
      page.open(address, function (status) {
          if (status !== 'success') {
              console.log('FAIL to load the address');
          } else {
              t = Date.now() - t;
              console.log('Page title is ' + page.evaluate(function () {
                  return document.title;
              }));
              console.log('Loading time ' + t + ' msec');
          }
          phantom.exit();
      });
  }
  </code></pre>
  
  <p>I get the following output:</p>
  
  <pre><code>Page title is Yahoo
  Loading time 700 msec
  </code></pre>
  
  <p>However, when I try running a simple nightmare:</p>
  
  <pre><code>node --harmony hello_nightmare.js
  </code></pre>
  
  <p>with hello_nightmare.js containing this:</p>
  
  <pre><code>var Nightmare = require('nightmare');
  
  var google = new Nightmare()
    .goto('http://google.com')
    .wait()
    .run(function(err, nightmare) {
      if (err) return console.log(err);
      console.log('Done!');
    });
  </code></pre>
  
  <p>I get no output whatsoever; it feels like I just pressed 'Enter' on the command line.</p>
  
  <p>I also tried the example on the nightmare github site:</p>
  
  <pre><code>npm install nightmare vo
  node --harmony hello_nightmare_main.js
  </code></pre>
  
  <p>with hello_nightmare_main.js containing this:</p>
  
  <pre><code>var Nightmare = require('nightmare');
  var vo = require('vo');
  
  vo(function* () {
    var nightmare = Nightmare({ show: true });
    var link = yield nightmare
      .goto('http://yahoo.com')
      .type('input[title="Search"]', 'github nightmare')
      .click('.searchsubmit')
      .wait('.ac-21th')
      .evaluate(function () {
        return document.getElementsByClassName('ac-21th')[0].href;
      });
    yield nightmare.end();
    return link;
  })(function (err, result) {
    if (err) return console.log(err);
    console.log(result);
  });
  </code></pre>
  
  <p>And it still doesn't work.</p>
  
  <p>How do I fix this nightmare?</p>