How to fix TypeError: The 'path' argument must be of type string. Received type number in Node.js | DevErrors