- [0] (node:10908) Warning: Accessing non-existent property 'count' of module exports inside circular dependency
- [0] (Use `node --trace-warnings ...` to show where the warning was created)
- [0] (node:10908) Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency
- [0] (node:10908) Warning: Accessing non-existent property 'remove' of module exports inside circular dependency
- [0] (node:10908) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency
- [0] events.js:292
- [0] throw er; // Unhandled 'error' event
- [0] ^
- [0]
- [0] Error: listen EADDRINUSE: address already in use :::5000
- [0] at Server.setupListenHandle [as _listen2] (net.js:1318:16)
- [0] at listenInCluster (net.js:1366:12)
- [0] at Server.listen (net.js:1452:7)
- [0] at Function.listen (C:\Users\jimin\Downloads\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\express\lib\application.js:618:24)
- [0] at Object.<anonymous> (C:\Users\jimin\Downloads\boilerplate-mern-stack-master\boilerplate-mern-stack-master\server\index.js:58:5)
- [0] at Module._compile (internal/modules/cjs/loader.js:1063:30)
- [0] at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
- [0] at Module.load (internal/modules/cjs/loader.js:928:32)
- [0] at Function.Module._load (internal/modules/cjs/loader.js:769:14)
- [0] at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
- [0] at internal/main/run_main_module.js:17:47
- [0] Emitted 'error' event on Server instance at:
[0] at emitErrorNT (net.js:1345:8)
- [0] at processTicksAndRejections (internal/process/task_queues.js:80:21) {
- [0] code: 'EADDRINUSE',
- [0] errno: -4091,
- [0] syscall: 'listen',
- [0] address: '::',
- [0] port: 5000
- [0] }
- [0] [nodemon] app crashed - waiting for file changes before starting...
이렇게 오류가 납니다. localhost:3000 포트에서는 정상적으로 잘 작동이 되더만, localhost:5000 포트에서는 Error Cannot GET /가 뜹니다. 왜 이런걸까요? ㅠ