[React-Native] npm install 설치 시 npm ERR! code ERESOLVE

2022. 1. 14. 22:09·React-Native
반응형

서론

Window에서 Mac으로 변경하고 이런 저런 설정을 잡는 도중 여러 오류를 발견하였다.

이런 오류에 대해 기록하고 공유하고자 글을 작성합니다.

 


본론

답은 ERP! 경고문에 나와있다.

1. react 버전을 맞춰라.

2. --legacy-peer-deps 를 이용해라. 

 


해결

npm install --legacy-peer-deps
아래 내용을 통해 비교적 쉽게 해결할 수 있었다.

https://stackoverflow.com/questions/64573177/unable-to-resolve-dependency-tree-error-when-installing-npm-packages

 

Unable to resolve dependency tree error when installing npm packages

When trying to install the npm packages using npm i command, I am getting the following exception: I have tried reinstalling the Node.js package and setting the proxy to off using: set HTTP_PROXY=...

stackoverflow.com

 


참고자료

https://velog.io/@dev_cecy/npm-install-%EC%98%A4%EB%A5%98-code-ERESOLVE

 

npm install 오류 (code ERESOLVE)

예전에 작성했던 코드를 로컬로 다시 클론받아 코드를 수정하려고했다. 화면을 보기위해npm start를 해주었더니, script 오류가 났고🤦🏻‍♀️ 당황하지 않고 npm install을 해주었다. 그랬더니 이

velog.io

 

https://iancoding.tistory.com/154

 

[오류해결] npm install 설치시 npm ERR! code ERESOLVE

npm install react-paypal-express-checkout --save npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree paypal 이용하려고 설치하려고 하자 위와 같이 오류가 났다.  해결방법 npm i..

iancoding.tistory.com

https://stackoverflow.com/questions/64573177/unable-to-resolve-dependency-tree-error-when-installing-npm-packages

 

Unable to resolve dependency tree error when installing npm packages

When trying to install the npm packages using npm i command, I am getting the following exception: I have tried reinstalling the Node.js package and setting the proxy to off using: set HTTP_PROXY=...

stackoverflow.com

 

반응형
저작자표시 비영리 변경금지 (새창열림)
'React-Native' 카테고리의 다른 글
  • [React-Native] ScrollView를 사용한 Native Picker 만들기
  • [React-Native] Node.js 빌드 에러 : address already in use :::8081
  • [React-Native] 안드로이드 디바이스 글자 크기 설정 기능 제한 (Text , TextInput)
  • [React-Native] This is probably not a problem with npm. There is likely additional logging output above 오류
꾸매코더
꾸매코더
웹 / 앱 개발자
  • 꾸매코더
    꾸매코딩
    꾸매코더
  • 전체
    오늘
    어제
    • 분류 전체보기 (96)
      • JavaScript (18)
        • Deep Dive (0)
      • React (5)
      • React-Native (9)
      • CSS (3)
      • TypeScript (1)
      • CS (10)
      • GitHub (4)
      • Clone Coding (15)
        • Kakaotalk [HTML + CSS] (10)
        • Momentum [JavaScript] (5)
      • Project (30)
        • Timer Project (14)
        • Netflix [React + Hooks] (12)
        • ToDoList [React-Native] (4)
      • 회고 (1)
  • 링크

    • Github
  • hELLO· Designed By정상우.v4.10.3
꾸매코더
[React-Native] npm install 설치 시 npm ERR! code ERESOLVE
상단으로

티스토리툴바