FIX "ReferenceError: __dirname is not defined in ES module scope" in NodeJs.
'__dirname' is used to get the directory name of the currently executing module's file.  Let's first...
Tags: node, javascript, backenddevelopment, webdev