title: Forever errors with babel-node
body: <p>I have a simple node server:</p>
  
  <p>//server.js</p>
  
  <pre><code>import express  from 'express';
  import React    from 'react';
  ...
  </code></pre>
  
  <p>When I try to run this using <a href="https://github.com/foreverjs/forever" rel="noreferrer">Forever</a>:</p>
  
  <p><code>forever start -c "babel-node --experimental" server.js</code>
  , it errors out due to use of <code>import</code></p>
  
  <pre><code>/Applications/MAMP/htdocs/React/ReactBoilerplates/koba04/app/server.js:1
  (function (exports, require, module, __filename, __dirname) { import express  
                                                                ^^^^^^
  SyntaxError: Unexpected reserved word
      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 Function.Module.runMain (module.js:497:10)
      at startup (node.js:119:16)
      at node.js:902:3
  error: Forever detected script exited with code: 8
  </code></pre>
  
  <p>I have also tried <a href="https://github.com/Unitech/PM2" rel="noreferrer">pm2</a> and <a href="https://github.com/remy/nodemon" rel="noreferrer">nodemon</a>, I get same error there as well.
  For pm2, I followed this issue <a href="https://github.com/Unitech/PM2/issues/1167" rel="noreferrer">https://github.com/Unitech/PM2/issues/1167</a>, but it didn't work either. What am I doing wrong here?</p>