To load an ES module, set "type": "module" code example Example: node package.json type module node --experimental-modules app.js