I try closing all the terminal and open them again, it still did not work and also I reinstalled the dependencies still showing the same result , what is even more surprisingly is that my backend node server terminal is close yet my frontend is still facing data from backend. lastly, I close my vscode and open it again then run yarn start but yet still, showing the same result...
Error: listen EADDRINUSE: address already in use :::5000
at Server.setupListenHandle [as _listen2] (node:net:1285:16)
at listenInCluster (node:net:1333:12)
at Server.listen (node:net:1419:7)
at Function.listen (C:\Users\AHMED\Desktop\e-commerce\node_modules\express\lib\application.js:618:24)
at file:///C:/Users/AHMED/Desktop/e-commerce/backend/server.js:25:5
at ModuleJob.run (node:internal/modules/esm/module_job:146:23)
at async Loader.import (node:internal/modules/esm/loader:165:24)
at async Object.loadESM (node:internal/process/esm_loader:68:5)
Emitted 'error' event on Server instance at:
at emitErrorNT (node:net:1312:8)
at processTicksAndRejections (node:internal/process/task_queues:80:21) {
code: 'EADDRINUSE',
errno: -4091,
syscall: 'listen',
address: '::',
port: 5000
}
I try closing all the terminal and open them again, it still did not work and also I reinstalled the dependencies still showing the same result , what is even more surprisingly is that my backend node server terminal is close yet my frontend is still facing data from backend. lastly, I close my vscode and open it again then run yarn start but yet still, showing the same result...
Error: listen EADDRINUSE: address already in use :::5000 at Server.setupListenHandle [as _listen2] (node:net:1285:16) at listenInCluster (node:net:1333:12) at Server.listen (node:net:1419:7) at Function.listen (C:\Users\AHMED\Desktop\e-commerce\node_modules\express\lib\application.js:618:24) at file:///C:/Users/AHMED/Desktop/e-commerce/backend/server.js:25:5 at ModuleJob.run (node:internal/modules/esm/module_job:146:23) at async Loader.import (node:internal/modules/esm/loader:165:24) at async Object.loadESM (node:internal/process/esm_loader:68:5) Emitted 'error' event on Server instance at: at emitErrorNT (node:net:1312:8) at processTicksAndRejections (node:internal/process/task_queues:80:21) { code: 'EADDRINUSE', errno: -4091, syscall: 'listen', address: '::', port: 5000 }
Please your help is needed. thank you