{"type": "module" } in package json code example Example: node package.json type module node --experimental-modules app.js