How to fix Error: path.resolve() received no arguments (at least one required) in Node.js | DevErrors