In my node.js project , i was using .env file to store the port number. So if you are following the same then: solution: DO NOT ADD ; in .env file