inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

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

Multer로 노드 서버에 비디오 저장하기

npm start가 안됩니다

395

Youngja Sung

작성한 질문수 9

0

npm start 하니 이런 오류가 뜹니다. 

어떻게 해결해야할지 알려주세요 

감사합니다. 

터미널 오류를 복사붙여넣기 하자면 이렇습니다. 

> react-boiler-plate@1.0.0 start /Users/kimhyesu/Downloads/boilerplate-mern-stack-master

> node server/index.js

/Users/kimhyesu/Downloads/boilerplate-mern-stack-master/server/routes/video.js:16

  upload(req, res, err ) => {

  ^^^^^^^^^^^^^^^^^^^^^

SyntaxError: Malformed arrow function parameter list

    at wrapSafe (internal/modules/cjs/loader.js:979:16)

    at Module._compile (internal/modules/cjs/loader.js:1027:27)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)

    at Module.load (internal/modules/cjs/loader.js:928:32)

    at Function.Module._load (internal/modules/cjs/loader.js:769:14)

    at Module.require (internal/modules/cjs/loader.js:952:19)

    at require (internal/modules/cjs/helpers.js:88:18)

    at Object.<anonymous> (/Users/kimhyesu/Downloads/boilerplate-mern-stack-master/server/index.js:37:23)

    at Module._compile (internal/modules/cjs/loader.js:1063:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)

    at Module.load (internal/modules/cjs/loader.js:928:32)

    at Function.Module._load (internal/modules/cjs/loader.js:769:14)

    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)

    at internal/main/run_main_module.js:17:47

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! react-boiler-plate@1.0.0 start: `node server/index.js`

npm ERR! Exit status 1

npm ERR! 

npm ERR! Failed at the react-boiler-plate@1.0.0 start 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!     /Users/kimhyesu/.npm/_logs/2021-04-16T07_59_10_322Z-debug.log

react nodejs mongodb redux

답변 1

0

John Ahn

Youngja Sung 님 안녕하세요 답변이 늦어서 죄송합니다 !! 

upload (req, res, err ) =>  이렇게 되어 있는데 

upload (req, res, err => { 이런식으로 바꿔주세요 ~   수고하세요 ~

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

0

52

1

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

0

221

1

자료 없음

0

321

1

이미지 깨짐

0

334

1

npm run dev 동작 에러

0

304

1

npm run dev 동작 에러

0

294

1

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

0

660

1

npm run dev 실행 오류

0

653

1

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

0

1056

1

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

1

466

1

오류 해결 공유

0

458

1

npm install 에러 질문드립니다.

0

1120

2

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

0

550

1

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

0

515

1

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

0

515

0

video가 안 나타나는 문제

0

893

1

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

0

470

0

typeError or 콘솔 500 뜨는분..

0

336

0

npm run dev 관련 오류

0

578

1

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

0

246

0

useState 자동 생성

0

343

1

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

0

1243

2

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

0

245

0

antd Input background color 변경

0

236

0