node-react-ecommerce
node-react-ecommerce copied to clipboard
Error: listen EADDRINUSE: address already in use :::5000
When I try to run the server by writing 'npm start' on the terminal, it's giving me the below error. As I am following the video series and stuck in part 15. Anyone who knows how to get rid of that?
events.js:187 throw er; // Unhandled 'error' event ^
Error: listen EADDRINUSE: address already in use :::5000
at Server.setupListenHandle [as _listen2] (net.js:1301:14)
at listenInCluster (net.js:1349:12)
at Server.listen (net.js:1437:7)
at Function.listen (F:\MernStack\parsell\node_modules\express\lib\application.js:618:24)
at Object.
The port 5000 is already in use, so you have to kill the process which is using this port.
Search for command to kill the process of port number 5000, and after it, you can start your backend on this port.
@Faiqa123 @jitendrasuthar1998 FYI that this stackoverflow topic helped resolve this issue for me: https://stackoverflow.com/questions/69868760/m1-mac-process-keeps-autogenerating-and-locks-my-port