Node.js
EADDRINUSE: Finding and Killing Whatever Took Your Port
Address already in use. Here is how to find the process, why it sometimes is not a process at all, and why the port stays busy after you kill it.
Module resolution, memory leaks, event loop stalls and the ESM and CommonJS boundary that breaks builds.
Node.js
Address already in use. Here is how to find the process, why it sometimes is not a process at all, and why the port stays busy after you kill it.
JavaScript
Sometimes it is infinite recursion. Often it is spreading a large array into a function call, and the fix is completely different.
JavaScript
The angle bracket is the first character of an HTML error page. Your API returned a page, not JSON, and here is how to find out which page.
JavaScript
CORS errors are a browser protecting you from a response it already received. Understanding that one fact makes every CORS error obvious.
Node.js
Memory climbs, the process gets killed, and restarting fixes it for six hours. Here is the diff based method that finds the retainer.
Node.js
It used to be a warning. Since Node 15 it terminates the process, and that change surfaced a lot of latent bugs.
JavaScript
The error names the property, not the reason. Here is how to work backwards from the message to the function that returned nothing.