You start your Express app using nodemon app.js. What is the main behavior you observe compared to running node app.js?
Think about what helps developers see changes without manually restarting.
Nodemon watches your files and restarts the server automatically when it detects changes. This saves time during development.
You want to add nodemon to your Express project only for development. Which command is correct?
Development dependencies are installed with a special flag.
The --save-dev flag installs nodemon only for development, not for production use.
You run nodemon app.js but after editing your source files, the server does not restart. What is a likely cause?
Check which files nodemon watches and ignores.
Nodemon watches files in the current directory by default. If you edit files outside or listed in .nodemonignore, it won't restart.
You run nodemon app.js and then save changes to app.js. What output do you expect in the terminal?
Think about what nodemon shows to inform you about restarts.
Nodemon prints messages like 'app crashed - waiting for file changes...' or 'restarting due to changes...' to keep you informed.
Choose the best explanation for why developers use nodemon instead of running node app.js directly during development.
Focus on how nodemon helps with the development workflow.
Nodemon watches your files and restarts the server automatically when you save changes. This avoids manual restarts and speeds up testing.