-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"EADDRINUSE :::#port" while saving #826
Comments
I have also faced this bug. However, I'd suggest that instead of changing the port each time you face EADDRINUSE error, you should kill the process that is currently binding to the old port. Because if you don't do so, you'd be left with a zombie nestjs process for each time you change the port, which is never a good thing to have. On Ubuntu, I'd do the following:
Since OSX is also a "nix", the above commands should work on it too. |
What repository are you using? |
@kapv89 I have figured this out by myself, too. It was too annoying to change the port in the rest-client, too. @unlight kr |
I don't this is related to the Nest package. Consider reporting this issue in the appropriate repository (nodemon?) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Current behavior
npm run start:dev
starts as expected the watcher and compiles the changes. After a while (i assume, if you save to frequently in short time) the watcher (nodemon) raises the errorEADDRINUSE
. After restarting the server, the error persists. I have to change the port in the main file.Expected behavior
Well, the watcher should not throw this error :-)
Minimal reproduction of the problem with instructions
npm run start:dev
do two saves quickly and you should get the error.
What is the motivation / use case for changing the behavior?
Proper testing environment
Environment
The text was updated successfully, but these errors were encountered: