I faced an issue where Nodemon showed:
[nodemon] clean exit - waiting for changes before restart
After 4 hours of debugging, I realized the problem was due to using Ctrl+Z instead of Ctrl+C to stop the server.
Ctrl+Z → suspends the process (port remains occupied).
Ctrl+C → properly terminates the process and frees the port.
Using Ctrl+C solved the issue.