Express 기본기Express 기본 익히기POST 리퀘스트를 보내는 방법

Q

node app.js를 작성해도 오류가 나서 작동이 안되네요

조회 1643

좋아요 0

2022년 1월 26일




댓글 2

2022년 1월 26일
잘보이지 않는데 에러 메시지랑 코드를 버튼을 눌려서 복붙해주시겠어용?
2022년 1월 26일
D:\김윤미\2_스터디\expressStudy\cowork>node app
node:events:368
throw er; // Unhandled 'error' event
^

Error: listen EADDRINUSE: address already in use :::3000
at Server.setupListenHandle [as _listen2] (node:net:1334:16)
at listenInCluster (node:net:1382:12)
at Server.listen (node:net:1469:7)
at Function.listen (D:\김윤미\2_스터디\expressStudy\cowork\node_modules\express\lib\application.js:618:24)
at Object. (D:\김윤미\2_스터디\expressStudy\cowork\app.js:124:5)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
Emitted 'error' event on Server instance at:
at emitErrorNT (node:net:1361:8)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
code: 'EADDRINUSE',
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
Emitted 'error' event on Server instance at:
at emitErrorNT (node:net:1361:8)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
code: 'EADDRINUSE',
errno: -4091,
syscall: 'listen',
address: '::',
port: 3000
}
A
1개의 답변이 있어요
커뮤니티 파트너 채택



2022년 1월 26일

댓글 3

2022년 1월 27일
해결했어요!! 정말 감사합니다 ㅎㅎㅎㅎ
2022년 1월 27일
다행입니다!
2022년 1월 27일
다행입니다!

(주) 코드잇

대표강영훈

개인정보보호책임자강영훈

이메일support@codeit.kr

사업자 번호313-86-00797

통신판매업제 2019-서울중구-1034 호

주소서울특별시 중구 청계천로 100 시그니쳐타워 동관 10층 코드잇