Open the package.json file. Check for the name of the file for the main field.
In my case, it is {…,”main”: “app.js“,…}. This app.js is the primary entry point to the program. Now, try to start your server with the following command,
nodemon app.js
or
node app.js