inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

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

비디오 업로드 FORM 만들기 (1)

npm run dev시 오류

2946

Donggun Han

작성한 질문수 1

2

안녕하세요 !
영상 4분 30초 쪽에 보면 npm run dev 입력하면 오류가 발생하는데요 > react-boiler-plate@1.0.0 dev C:\VScodeProject\boilerplate-mern-stack-master > 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 (internal/child_process.js:267:19) [0] at onErrorNT (internal/child_process.js:469:16) [0] at processTicksAndRejections (internal/process/task_queues.js:84:21) [1] Error occurred when executing command: npm run start --prefix client [1] Error: spawn cmd.exe ENOENT [1] at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19) [1] at onErrorNT (internal/child_process.js:469:16) [1] at processTicksAndRejections (internal/process/task_queues.js:84:21) [1] npm run start --prefix client exited with code -4058 [0] npm run backend exited with code -4058 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! react-boiler-plate@1.0.0 dev: `concurrently "npm run backend" "npm run start --prefix client"` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the react-boiler-plate@1.0.0 dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\hdg42\AppData\Roaming\npm-cache\_logs\2020-03-23T12_21_01_907Z-debug.log 이렇게 나옵니다. 무슨 문제일까요?

nodejs mongodb redux react

답변 11

2

beginagain

안녕하세요 혹시 어떻게 해결하셨나요???

1

김서연

저도 같은 문제를 겪고 있는데 혹시 어떻게 해결하셨는지 여쭤봐도 될까요?

1

Donggun Han

위 사진이 npm install  루트랑 클라이언트에서 설치하는 것입니다.

0

김수홍

module.exports = {
    mongoURI:'mongodb+srv://Username:<password>@cluster0.xpl7k.mongodb.net/<dbname>?retryWrites=true&w=majority'
}
몽고디비 유저네임이랑 패스워드 안적어서 생긴 오류
아닌가요?

0

Rita

전 package-lock.json 삭제하고 npm install 다시 하니까 해결됐습니다! https://qastack.kr/programming/42308879/npm-err-code-elifecycle

0

theonlyoneu

혹시 yarn 사용시 에러 나시는 분 참고 하세요. ^^

--prefix client 말고 아래와 같이 --cwd ./client 로 바꿔주세요. 

"scripts": {
    "start": "node index.js",
    "server": "nodemon index.js",
    "client": "yarn --cwd ./client run start",
    "dev": "concurrently -k \"yarn run server\" \"yarn run client\""
  },

0

니나니노

Path 환경변수에 C:\windows\system32  추가해보시고 그래도 안 되시면

export PATH="$PATH:/mnt/c/Windows/System32" npm run dev  해보세요.

0

Donggun Han

이게 실행시켰을때 오류 나오는 부분입니다.  다른 예제 리액트 기본 create-react-app 하고 yarn start 할때도 똑같이는 안나오지만 실행이 안되거든요.. 왜 그럴까요. node 파일 에 문제가 생긴건지.

0

Donggun Han

0

Donggun Han

0

John Ahn

혹시   npm install 로   dependency를 다운 받으셨나요 ~ ? 

npm i하면 바로, 라이브러리 오류없이 받아지고, 구동되는 소스는 없나요?

0

52

1

ERROR in ./node_modules/antd/es/version/index.js 2:15-22

0

221

1

자료 없음

0

323

1

이미지 깨짐

0

336

1

npm run dev 동작 에러

0

304

1

npm run dev 동작 에러

0

295

1

npm run dev 동작에러납니다...

0

662

1

npm run dev 실행 오류

0

653

1

비디오 업로드, 로그인, 회원가입 504 error

0

1057

1

시작부터 오류생기시는 분들 해결법입니다.

1

467

1

오류 해결 공유

0

459

1

npm install 에러 질문드립니다.

0

1121

2

아예 몽고DB에 연결한다고만 하고 연결이 안되고 있습니다.

0

551

1

해당 오류 해결 방법 좀 알려주세요 ㅠㅠ

0

516

1

로컬스토리지에 대한 질문입니다!!

0

515

0

video가 안 나타나는 문제

0

894

1

ffmpeg 설치 후 cannot read property 'format' of undefined 500 에러 해결

0

471

0

typeError or 콘솔 500 뜨는분..

0

336

0

npm run dev 관련 오류

0

578

1

답글이 달리지않고 디비에도 저장되지않으며 새로고침이 됩니다.

0

246

0

useState 자동 생성

0

347

1

TypeError: Cannot read properties of undefined (reading 'format')

0

1246

2

userData undefined / state에 user.userData가 없습니다.

0

248

0

antd Input background color 변경

0

242

0