Error: listen EACCES: permission denied 8080;
at Server.setupListenHandle [as _listen2] (node:net:1723:21)
at listenInCluster (node:net:1788:12)
at Server.listen (node:net:1887:5)
at Function.listen (c:\Users\first\Desktop\team-project\project-book-store\node_modules\express\lib\application.js:635:24)
at Object.<anonymous> (c:\Users\first\Desktop\team-project\project-book-store\app.js:7:5)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
Emitted 'error' event on Server instance at:
at emitErrorNT (node:net:1767:8)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'EACCES',
errno: -4092,
syscall: 'listen',
address: '8080;',
port: -1
}
발생 원인 : env 설정시에 콜론(;)사용으로 인한 오류
결론 : env 파일에서 코드 마지막에 ; 작성을 하지 말자
'ERROR' 카테고리의 다른 글
[error][docker] mariadb의 database 초기화 현상 (0) | 2023.12.25 |
---|---|
[error] Docker DB schema 연동 안됐을 때 + Access denied for user 'root'@'172.17.0.1' (0) | 2023.12.20 |
[error] address already in use :::8000 (0) | 2023.12.13 |