Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

개발 블로그

[에러 해결]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:21

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 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를 했는데 에러가 나는 것이다!

알고보니 리액트 코드 쪽에서 에러가 발생해서 그랬던 것...