인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

인프런 커뮤니티 질문&답변

정민창님의 프로필 이미지
정민창

작성한 질문수

따라하며 배우는 노드, 리액트 시리즈 - 유튜브 사이트 만들기

npm run dev 후 에러가 뜹니다ㅜㅜ

작성

·

289

0

$ npm run dev

> react-chat-app@1.0.0 dev

> concurrently "npm run backend" "npm run start --prefix client"

[0] Error occurred when executing command: npm run backend

[0] Error: spawn cmd.exe ENOENT

[0]     at Process.ChildProcess._handle.onexit (node:internal/child_process:277:19)

[0]     at onErrorNT (node:internal/child_process:477:16)

[0]     at processTicksAndRejections (node:internal/process/task_queues:81:21)

[1] Error occurred when executing command: npm run start --prefix client

[1] Error: spawn cmd.exe ENOENT

[1]     at Process.ChildProcess._handle.onexit (node:internal/child_process:277:19)       

[1]     at onErrorNT (node:internal/child_process:477:16)

[1]     at processTicksAndRejections (node:internal/process/task_queues:81:21)

[1] npm run start --prefix client exited with code -4058

[0] npm run backend exited with code -4058

npm ERR! code 1

npm ERR! path C:\Users\jeong\react\react-youtube-clone-master

npm ERR! command failed

npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c concurrently "npm run backend" "npm 

run start --prefix client"

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

npm ERR!     C:\Users\jeong\AppData\Local\npm-cache\_logs\2021-01-25T07_55_17_844Z-debug.log

답변 2

1

server 부분에서 npm run backend 하고 client에서 npm run start 해보세요

0

정민창님의 프로필 이미지
정민창
질문자

서영님 께서 알려주신 대로 해도 오류가 납니다ㅜㅜ

정민창님의 프로필 이미지
정민창

작성한 질문수

질문하기