I was testing node with ES6 with the flag child_process --harmony
but it fails at first step when I import. Any ideas?
import {'spawn'} from child_process;
console.log(spawn);
And i run:
node --harmony test.js
And I get:
:1
(function (exports, require, module, __filename, __dirname) { import {spawn} f
^^^^^^
SyntaxError: Unexpected token import