개발 블로그
[에러 해결]npm WARN fork-ts-checker-webpack-plugin@6.5.2 requires a peer of typescript@>= 2.7 but none is installed. You must install peer dependencies yourself. 본문
[에러 해결]npm WARN fork-ts-checker-webpack-plugin@6.5.2 requires a peer of typescript@>= 2.7 but none is installed. You must install peer dependencies yourself.
토산인 2023. 2. 12. 23:21npm WARN fork-ts-checker-webpack-plugin@6.5.2 requires a peer of typescript@>= 2.7 but none is installed. You must install peer dependencies yourself.
npm WARN react-avatar-uploader@1.0.3 requires a peer of react@^16.4.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-avatar-uploader@1.0.3 requires a peer of react-dom@^16.4.1 but none is installed. You must install peer dependencies yourself.
npm WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
프로젝트를 잘 빌드하고 있다가 갑자기 빌드하니 이런 에러가 생겼다.. 왜 생긴지는 모르겠지만 버전 문제여서 설치를 해야한다는 것 같다.
먼저
npm install typescript 로 typescript를 설치한다.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bstar-frontend@0.1.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bstar-frontend@0.1.0 build 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\82104\AppData\Roaming\npm-cache\_logs\2023-02-12T13_51_41_213Z-debug.log
갑자기 또 이런 에러가 생겨서
npm install 로 새로 설치하고 npm start를 했는데 에러가 나는 것이다!
알고보니 리액트 코드 쪽에서 에러가 발생해서 그랬던 것...
'개인 공부' 카테고리의 다른 글
[백엔드] 네이버 트래픽 처리 (0) | 2023.04.10 |
---|---|
[springboot/에러해결]nullpointerException, BeanInstantiationException 에러 (0) | 2023.03.18 |
[react/에러]npm ERR! code ERESOLVEnpm ERR! ERESOLVE could not resolve (0) | 2023.02.10 |
[springboot/에러 해결]nohup 에러 (0) | 2023.02.03 |
[unity]유니티 사용 방법/용어 정리 (0) | 2022.12.29 |