use imporet export es6 with node.js code example Example: node package.json type module node --experimental-modules app.js