📦Port already in use
Error: listen EADDRINUSE: address already in use :::3000
Another program is already using that number (port), so the server can't start. Usually a dev server you started earlier is still running.
🤔 Why does it happen?
- A dev server is already running in another terminal window
- The server didn't shut down properly and is still running in the background
🔧 Try this
- Find the other terminal window and stop the server with Ctrl + C
- You can also start it on a different port (for example, npm run dev -- -p 3001)
- If that still doesn't work, restart your computer
🤖 Ask your AI like this
I get the EADDRINUSE error below when I start the dev server. My computer is a [Mac/Windows]. Please walk me through finding and stopping the program that's using that port, step by step. [Paste the full error here]
Replace the [ ] parts with your own situation, and paste the error with a few extra lines before and after it.
Related terms
Other errors in this group
- Module not found
Module not found: Can't resolve - Command not found
command not found - Package version conflict (ERESOLVE)
npm ERR! ERESOLVE unable to resolve dependency tree - Types don't match (TypeScript)
Type 'X' is not assignable to type 'Y' - No permission, so install failed (EACCES)
EACCES: permission denied - Node version doesn't match
The engine "node" is incompatible with this module - Out of memory (heap out of memory)
JavaScript heap out of memory - Can't use import statements (module settings)
SyntaxError: Cannot use import statement outside a module - Build failed on code checks (ESLint)
Failed to compile — ESLint errors - File or folder not found (ENOENT)
ENOENT: no such file or directory