• 로그인
  • 장바구니에 상품이 없습니다.

home2 게시판 React 게시판 설치 오류 질문입니다..

설치 오류 질문입니다..

3 글 보임 - 1 에서 3 까지 (총 3 중에서)
  • 글쓴이
  • #133759

    커피좋아
    참가자
    react 잘 쓰다가 오늘 프로젝트 하나 다시 만들었는데 오류가 생깁니다.
    Installing template dependencies using npm...
    npm error code ERESOLVE
    npm error ERESOLVE unable to resolve dependency tree
    npm error
    npm error While resolving: blog@0.1.0
    npm error Found: react@19.0.0
    npm error node_modules/react
    npm error   react@"^19.0.0" from the root project
    npm error
    npm error Could not resolve dependency:
    npm error peer react@"^18.0.0" from @testing-library/react@13.4.0
    npm error node_modules/@testing-library/react
    npm error   @testing-library/react@"^13.0.0" from the root project
    npm error
    npm error Fix the upstream dependency conflict, or retry
    npm error this command with --force or --legacy-peer-deps
    npm error to accept an incorrect (and potentially broken) dependency resolution.
    npm error
    npm error
    npm error For a full report see:
    npm error C:\Users\hola-\AppData\Local\npm-cache\_logs24-12-10T01_57_45_339Z-eresolve-report.txt
    npm error A complete log of this run can be found in: C:\Users\hola-\AppData\Local\npm-cache\_logs24-12-10T01_57_45_339Z-debug-0.log
    `npm install --no-audit --save @testing-library/jest-dom@^5.14.1 @testing-library/react@^13.0.0 @testing-library/user-event@^13.2.1 web-vitals@^2.1.0` failed
    
    
    19버전이랑 충돌나는 것 같은데
    npx는 최신버전으로 자동 설치하게 되더라구요
    
    npm uninstall하고 설치해도 기존의 오류와 동일합니다.
    
    잘되다가 갑자기 안되네요..
    2시간 삽질하다 힘들어서 도움 청해봅니다..
    
    아, 참고로 node 22->18->20 다 설치해봤으나 안되네요.. 지금 22lts쓰고 있네요
    • 이 게시글은 커피좋아에 의해 6 월, 2 주 전에 수정됐습니다.
    • 이 게시글은 커피좋아에 의해 6 월, 2 주 전에 수정됐습니다.
    #133771

    커피좋아
    참가자
    어찌저찌 해결은 했습니다.
    저 오류 난 이후에 해달 폴더로 이동
    npm unintsall
    npm install
    
    
    261 packages are looking for funding
      run `npm fund` for details
    8 vulnerabilities (2 moderate, 6 high)
    
    버전이 높다는 메세지
    
    이후
    npm i web-vitals --save-dev
    
    그리고 실행
    
    
    
    #133780

    codingapple
    키 마스터
    19버전부터 뭔가 안되는거같은데 설치강의 따라서 vite 이용해서 프로젝트 생성합시다
3 글 보임 - 1 에서 3 까지 (총 3 중에서)
  • 답변은 로그인 후 가능합니다.

About

현재 월 700명 신규수강중입니다.

  (09:00~20:00) 빠른 상담은 카톡 플러스친구 코딩애플 (링크)
  admin@codingapple.com
  이용약관
ⓒ Codingapple, 강의 예제, 영상 복제 금지
top

© Codingapple, All rights reserved. 슈퍼로켓 에듀케이션 / 서울특별시 강동구 고덕로 19길 30 / 사업자등록번호 : 212-26-14752 온라인 교육학원업 / 통신판매업신고번호 : 제 2017-서울강동-0002 호 / 개인정보관리자 : 박종흠