Node error: SyntaxError: Unexpected token import
<p>I don't understand what is wrong. I checked other forum talking about transpilation and babel. What do I have to do?</p>

<pre><code>node -v
v5.5.0
</code></pre>

<p>my code:</p>

<pre><code>import recast from 'recastai'
</code></pre>

<p>and the error</p>

<pre><code>(function (exports, require, module, __filename, __dirname) { import recast from 'module1'
                                                              ^^^^^^

SyntaxError: Unexpected token import
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:387:25)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Function.Module.runMain (module.js:447:10)
    at startup (node.js:139:18)
    at node.js:999:3
</code></pre>