inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

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

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

시작 페이지가 안출력되요

3546

terecal

작성한 질문수 162

0

C:\hyun-tube\boilerplate-mern-stack>npm run dev

> react-boiler-plate@1.0.0 dev C:\hyun-tube\boilerplate-mern-stack

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

[0]

[0] > react-boiler-plate@1.0.0 backend C:\hyun-tube\boilerplate-mern-stack

[0] > nodemon server/index.js

[0]

[1]

[1] > client@0.1.0 start C:\hyun-tube\boilerplate-mern-stack\client

[1] > react-scripts start

[1]

[1] 'react-scripts'��(��) ���� �Ǵ� �ܺ� ����, ������ �� �ִ� ���α׷�, �Ǵ�

[1] ��ġ ������ �ƴմϴ�.

[1] npm ERR! code ELIFECYCLE

[1] npm ERR! errno 1

[1] npm ERR! client@0.1.0 start: `react-scripts start`

[1] npm ERR! Exit status 1

[1] npm ERR!

[1] npm ERR! Failed at the client@0.1.0 start script.

[1] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

[1] npm WARN Local package.json exists, but node_modules missing, did you mean to install?

[1]

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

[1] npm ERR!     C:\Users\hyunsepk\AppData\Roaming\npm-cache\_logs\2020-01-07T11_31_13_080Z-debug.log

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

[0] [nodemon] 1.19.2

[0] [nodemon] to restart at any time, enter `rs`

[0] [nodemon] watching dir(s): *.*

[0] [nodemon] starting `node server/index.js`

[0] Server Running at 5000

[0] (node:15384) DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead.

[0] MongoDB Connected...

이상태에서 localhost:5000 으로 요청을 날렸는데 

canot get/ 이라고 출력되요 왜 그런지 알려주시면 감사여 

mongodb nodejs redux react

답변 3

2

John Ahn

안녕하세요 ^^  

이렇게 에러가 나는 이유는  

Dependency ( 필요한 라이브러리들 )를 다운받지 않았을때 나오는 에러입니다. 

npm WARN Local package.json exists, but node_modules missing, did you mean to install?

이 로그 보이시죠 ?   

Dependency를 다운 받으면 node_modules속으로 저장이 됩니다. 근데 현재 

node_modules이 없을거에요 ! 

해결방법은   

 1. root 디렉토리에서   npm install     이렇게 한번 하셔서   node 서버를 위한 dependencies 를 다운받구요.

2. cd client  에서   디렉토리를 client 로 옮긴후에   npm install  하셔서  react 를 위한 dependencies를 다운 받으시면 됩니다. ^^  

이렇게 하면 저 에러는 사라질것이구요  혹시 MongoDB 연결은 하셨나요 ~ ? 

0

John Ahn

아 다행이네요 ~ 다음에 또 막히시면 질문주세요 ~~ !

0

terecal

front 에서 npm install 하고 나서 루트에서 npm run dev하니까 실행되여 감사합니다 ~!

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

0

52

1

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

0

222

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

517

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