Error: listen EADDRINUSE: address already in use 3000 | 8080 | 5000 node js solved

Error: listen EADDRINUSE: address already in use 3000 | 8080 | 5000 node js solved


Error: listen EADDRINUSE: address already in use 3000 | 8080 | 5000 node js solved

How to solve Error: listen EADDRINUSE: address already in use in node js is shown
events.js:292 throw er; // Unhandled ‘error’ event
Emitted ‘error’ event on Server instance at:
at emitErrorNT (net.js:1345:8) at processTicksAndRejections (internal/process/task_queues.js:80:21) {
code: ‘EADDRINUSE’,
errno: -4091,
syscall: ‘listen’,
address: ’::‘,
port:
}


Content

0.32 -> hey hello everyone in this video i will be showing  you how to solve error listen EADDRINUSE address  
7.44 -> already in use 3000 so this can be any number  over here this number directly corresponds to the  
12.64 -> port number that you have specified over in your  app.listen okay i have specified 3000 over here  
17.52 -> so first let me explain you why this is  caused okay it's pretty much obvious because  
21.84 -> this error occurs as this port okay this  port 3000 is already used by some other  
27.52 -> process or application on your system okay so we  can't now use this port and the simplest way to  
33.44 -> solve this problem is running this particular  server on some other port so just go to your  
39.2 -> code okay your main.js file again and in this  go to your app.listen okay and just change it  
46 -> to some other port let me put 3005 okay and i  hope it isn't like occupied i'll just change it  
52.72 -> i'll just change it here as well saving it and we  just now come here and will just start my server  
63.6 -> so now as you can see here it started it's  on port 3005 so really simple solution just  
68.8 -> change the port to some other port and if  you again get this problem just keep on  
72.88 -> changing and trying it again okay so that's  it for this video and i have also done many  
76.48 -> other programming videos in c c plus plus java do  check them out subscribe me thanks for watching

Source: https://www.youtube.com/watch?v=Z7PFg_G3IMM