I use the flag --experimental-modules when running my node application in order to use ES6 modules.
--experimental-modules
However when I use this flag the metavariable
process.cwd()
From documentation:
The process.cwd() method returns the current working directory of the Node.js process.