• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

npm run dev 프론트엔드 에러

20.07.08 15:52 작성 조회수 668

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

김흰둥이님의 프로필

김흰둥이

2020.10.27

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

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

문제가 해결되었습니다

0

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