title: Javascript Node - Showing errors on nightmare module nightmare.js
body: <p>I can't work out why the library I have installed (nightmare is showing me errors). The errors are mainly on lines that contain :</p>
  
  <pre><code>=&gt;
  </code></pre>
  
  <p>the error shows as expression expected. </p>
  
  <p>when running my program I get this error from the nightmare.js: </p>
  
  <pre><code>      return endInstance(self, () =&gt; fn.apply(self, doneargs));
                                         ^
  
  TypeError: Cannot read property 'apply' of undefined
  </code></pre>
  
  <p>I get these errors too: </p>
  
  <pre><code>  electronLog.stdout(data);
  </code></pre>
  
  <p>expected :</p>
  
  <p>In my code I can't use statements like this either: </p>
  
  <pre><code>.evaluate(() =&gt;
          document.querySelector('#zero_click_wrapper .c-info__title a').href
        )
  </code></pre>
  
  <p>Error: statement expected. </p>
  
  <p>Any ideas would be much appreciated. All my other node modules are fine.</p>