강의

멘토링

커뮤니티

Cộng đồng Hỏi & Đáp của Inflearn

Hình ảnh hồ sơ của vidkid
vidkid

câu hỏi đã được viết

Tạo máy chủ API của riêng bạn mà không cần mã hóa với Strapi

Strapi v5 버전의 프로젝트 실행이 안되네요.

Đã giải quyết

Viết

·

224

0

안녕하세요.

열심히 따라하고있습니다 ^^

 

질문 :

로컬 pc 에서 v5 로 프로젝트 생성해서 처음 실행하려는데 에러가 나면서 실행이 안되네요.

v4 버전할때는 강의 따라해도 문제없이 잘 됐었습니다.

  • 실행 결과를 보니 db 에는 테이블까지는 생성이 됐었네요.

 

에러 내용 :

C:\dev\strapi5_test> npm run develop

> strapi-5-test@0.1.0 develop

> strapi develop

⠋ Loading Strapi⠋ Building build context

[INFO] Including the following ENV variables as part of the JS bundle:

- ADMIN_PATH

- STRAPI_ADMIN_BACKEND_URL

- STRAPI_TELEMETRY_DISABLED

Building build context (73ms)

Creating admin (489ms)

Loading Strapi (1826ms)

Generating types (315ms)

node:events:497

throw er; // Unhandled 'error' event

^

Error: bind EACCES null:5173

at listenOnPrimaryHandle (node:net:1985:18)

at rr (node:internal/cluster/child:163:12)

at Worker.<anonymous> (node:internal/cluster/child:113:7)

at process.onInternalMessage (node:internal/cluster/utils:49:5)

at process.emit (node:events:531:35)

at process.processEmit [as emit] (C:\dev\strapi5_test\node_modules\signal-exit\index.js:199:34)

at emit (node:internal/child_process:951:14)

at process.processTicksAndRejections (node:internal/process/task_queues:83:21)

Emitted 'error' event on Server instance at:

at listenOnPrimaryHandle (node:net:1986:21)

at rr (node:internal/cluster/child:163:12)

[... lines matching original stack trace ...]

at process.processTicksAndRejections (node:internal/process/task_queues:83:21) {

errno: -4092,

code: 'EACCES',

syscall: 'bind',

address: null,

port: 5173

}

Node.js v20.18.0

C:\dev\strapi5_test>

 

바쁘시겠지만 시간 괜찮으실때 한번 봐주세요~

감사합니다.

 

node.jsmysqlbackendstrapiec2

Câu trả lời 1

1

teracokr님의 프로필 이미지
teracokr
Người chia sẻ kiến thức

네 안녕하세요 강의 잘 따라해주셔서 감사합니다.

 

에러 내용만 보면


errno: -4092, code: 'EACCES', syscall: 'bind', address: null, port: 5173 }

 

5173 포트에 접근권한이 없다고 하네요.

strapi 실행포트를 1337에서 5173으로 변경했을까요?

기존에 5173으로 띄워놓은 뭔가 있다면 그것을 중단하시거나, Strapi 포트를 다른 걸로 바꿔보시겠어요?

 

(새벽2시에 감동 받으셨다하셨는데 저는 그 리뷰 새벽4시반에 보고 감동 받았습니다. 감사합니다. 알아주셔서~~)

 

somestory님의 프로필 이미지
somestory
Người đặt câu hỏi

특별히 뭘 더 한건 아닌데 확인해보겠습니다~

어딘가에서 포트 충돌이있나봐요 ^^

빠른 답변 감사합니다~

Hình ảnh hồ sơ của vidkid
vidkid

câu hỏi đã được viết

Đặt câu hỏi