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

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

Dongha Taylor Kim님의 프로필 이미지
Dongha Taylor Kim

작성한 질문수

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

챗봇 어플리케이션 만들기#5 Front End 부분 시작

npm run dev 프론트엔드 에러

작성

·

809

0

cilent 에 npm install 을 할 때 에러가 나고(root는 정상적 install) 

npm run dev 으로 실행하니까 프론트엔드에서 저런 에러가 나오네요. 

fsevents, grpc, node-pre-gyp 다 실행해봤는데 고쳐지지 않아요.. 도와주세요!

/Users/donghakim/Desktop/coding/react-chat/react-chat/client/node_modules/chokidar/lib/fsevents-handler.js:28

[1]   return (new fsevents(path)).on('fsevent', callback).start();

[1]           ^

[1] 

[1] TypeError: fsevents is not a constructor

[1]     at createFSEventsInstance (/Users/donghakim/Desktop/coding/react-chat/react-chat/client/node_modules/chokidar/lib/fsevents-handler.js:28:11)

[1]     at setFSEventsListener (/Users/donghakim/Desktop/coding/react-chat/react-chat/client/node_modules/chokidar/lib/fsevents-handler.js:82:16)

[1]     at FSWatcher.FsEventsHandler._watchWithFsEvents (/Users/donghakim/Desktop/coding/react-chat/react-chat/client/node_modules/chokidar/lib/fsevents-handler.js:252:16)

[1]     at FSWatcher.<anonymous> (/Users/donghakim/Desktop/coding/react-chat/react-chat/client/node_modules/chokidar/lib/fsevents-handler.js:386:25)

[1]     at LOOP (fs.js:1786:14)

[1]     at processTicksAndRejections (internal/process/task_queues.js:75:11)

[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] 

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

[1] npm ERR!     /Users/donghakim/.npm/_logs/2020-07-08T06_49_46_985Z-debug.log

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

답변 2

2

stackoverflow에서 찾아봤는데 버전때문에 에러가 생기는 경우가 있다고 합니다

저도 같은 에러가 나서 package-rock.json하고 node_modules를 삭제하고 npm 재설치하니

문제가 해결되었습니다

0

John Ahn님의 프로필 이미지
John Ahn
지식공유자

가끔씩 npm 의 고질적인 에러가 있을떄가 있는것 같아요 ....
그래서 저도 이럴때면  소스 코드를 다시 받아서 해보면 될떄가 있는데 
혹시  소스 코드를 다시 받아서  해봐주실수 있나요 ~~ ???

Dongha Taylor Kim님의 프로필 이미지
Dongha Taylor Kim

작성한 질문수

질문하기