• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

오류

20.10.04 17:56 작성 조회수 365

0

events.js:291

      throw er; // Unhandled 'error' event

      ^

Error: listen EADDRINUSE: address already in use :::5000

    at Server.setupListenHandle [as _listen2] (net.js:1317:16)

    at listenInCluster (net.js:1365:12)

    at Server.listen (net.js:1451:7)

    at Function.listen (C:\Users\ivy\bolier-plate\node_modules\express\lib\application.js:618:24)

    at Object.<anonymous> (C:\Users\ivy\bolier-plate\index.js:29:5)

    at Module._compile (internal/modules/cjs/loader.js:1085:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)   

    at Module.load (internal/modules/cjs/loader.js:950:32)

    at Function.Module._load (internal/modules/cjs/loader.js:791:14)

    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)

    at internal/main/run_main_module.js:17:47

Emitted 'error' event on Server instance at:

    at emitErrorNT (net.js:1344:8)

    at processTicksAndRejections (internal/process/task_queues.js:80:21) {      

  code: 'EADDRINUSE',

  errno: -4091,

  syscall: 'listen',

  address: '::',

  port: 5000

}

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! bolier-plate@1.0.0 start: `node index.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the bolier-plate@1.0.0 start script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\ivy\AppData\Roaming\npm-cache\_logs\2020-10-04T08_54_51_132Z-debug.log

처음에 실행할때는 잘 되는데 다시 실행하려고하면 계속해서 똑같은 오류가 나요

해결하려고 별짓을 다해봤는데 안되네요  왜 그런걸까요??

답변 1

답변을 작성해보세요.

0

아  벌써   5000번 포트에   노드가 실행되고 있어서 다시  실행하려고 하니 오류가 나는 상태입니다 

pkill node 로 노드 서버를 Down 시키고 다시 시작해주세요 ~ !