title: Nodejs "SyntaxError: Unexpected token ."
body: <p>I'm trying to run a Bitcoin insight explorer (<a href="https://www.dgbwiki.com/index.php?title=Running_your_own_Insight_explorer" rel="nofollow noreferrer">https://www.dgbwiki.com/index.php?title=Running_your_own_Insight_explorer</a>). Using node v0.10.48 but I get this error (couldn't find the same problem over the internet):</p>
  
  <pre><code>digibyte@derecha-virtual-machine:~/insight$ /home/digibyte/.nvm/v0.10.48/bin/node ~/insight/node_modules/insight-bitcore-api/util/sync.js -D -v --rpc
  
  /home/digibyte/insight/node_modules/insight-bitcore-api/node_modules/async/dist/async.js:52
      function apply(fn, ...args) {
                         ^
  SyntaxError: Unexpected token .
      at Module._compile (module.js:439:25)
      at Object.Module._extensions..js (module.js:474:10)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:312:12)
      at Module.require (module.js:364:17)
      at require (module.js:380:17)
      at Object.&lt;anonymous&gt; (/home/digibyte/insight/node_modules/insight-bitcore-api/lib/HistoricSync.js:5:22)
      at Module._compile (module.js:456:26)
      at Object.Module._extensions..js (module.js:474:10)
      at Module.load (module.js:356:32)
  </code></pre>
  
  <p>The offending line 52 is in this function:</p>
  
  <pre><code>function apply(fn, ...args) { // &lt;- line 52
      return (...callArgs) =&gt; fn(...args,...callArgs);
  }
  </code></pre>
  
  <p>It looks ok to me I don't know why node gives an error.</p>