[nodemon] 3.1.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,cjs,json
[nodemon] starting `node server.js`
http://localhost:8080 에서 서버 실행중
DB연결성공
node:events:496
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE: address already in use :::8080
at Server.setupListenHandle [as _listen2] (node:net:1872:16)
at listenInCluster (node:net:1920:12)
at Server.listen (node:net:2008:7)
at Function.listen (D:\000000000000000000000000000000000000000000000000000\00000000000000000001 영상작업용 파일\코딩애플\NodeMonggo\node_modules\express\lib\application.js:635:24)
at D:\000000000000000000000000000000000000000000000000000\00000000000000000001 영상작업용 파일\코딩애플\NodeMonggo\server.js:19:9
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Emitted 'error' event on Server instance at:
at emitErrorNT (node:net:1899:8)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'EADDRINUSE',
errno: -4091,
syscall: 'listen',
address: '::',
port: 8080
}
Node.js v20.11.1
[nodemon] app crashed - waiting for file changes before starting...
이런 에러가 뜨는데 이런건 어떻게 해결해야 하나요? ㅠㅠ