those who know about node js . Can you help me . I have some error in my js code. By using postman made a code to give res, Req . I used port 3000 in my lap . But it always show me an error “3000 is already used .
i kill the port number on cmd , and i tried another port number . Bu same error
this is the error i am getting =
(node:events:496
throw er; // Unhandled ‘error’ event
^
Error: listen EADDRINUSE: address already in use :::5000
at Server.setupListenHandle [as _listen2] (node:net:1907:16)
at listenInCluster (node:net:1964:12)
at Server.listen (node:net:2066:7)
at Function.listen (C:UsersErangaOneDriveDesktopfucking projectnode_modulesexpresslibapplication.js:635:24)
at file:///C:/Users/Eranga/OneDrive/Desktop/fucking%20project/index.js:56:5
at ModuleJob.run (node:internal/modules/esm/module_job:268:25)
at async onImport.tracePromise.proto (node:internal/modules/esm/loader:543:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5)
Emitted ‘error’ event on Server instance at:
at emitErrorNT (node:net:1943:8)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
code: ‘EADDRINUSE’,
errno: -4091,
syscall: ‘listen’,
address: ‘::’,
port: 5000
}
Node.js v22.11.0
[nodemon] app crashed – waiting for file changes before starting…)