npm 설치를 하는데 이런 오류가 나왔었다.
github 작업할 때 @react-native-firebase/auth는 node-module에 있었는데 @react-native-firebase/storage를 설치해서 사용하려고 하니까 설치가 안되는 오류였다.
오류메시지는 Conflicting peer dependecy 와 Could not resolve dependency 였는데 @react-native-firebase안에 이미 auth가 있고 storage가 뭔가 이미 설치된거랑 안맞아서 오류가 생기는 느낌..?(영어 그대로 해석해봤을때..)
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
다음을 참고해서 해결하였다.
npm install @react-native-firebase/firestore --legacy-peer-deps
뒤에 --legacy-peer-deps를 사용하여 해결하였다.
npm install `--force` and `--legacy-peer-deps` 차이점
참고 https://stackoverflow.com/questions/66020820/npm-when-to-use-force-and-legacy-peer-deps
velog.io
다음을 참고하니까 npm이 버젼이 새로워지면서 원래는 peer dependecies가 있으면 경고만 뜨고 설치는 되었는데 npm7버전은 설치가 막힌다고 한다.
그래서 --force를 사용하던지 --legacy-peer-deps를 사용하면 충돌을 무시한다고 한다.
'App > ReactNative' 카테고리의 다른 글
(오류)Too many re-renders. React limits the number of renders to prevent an infinite loop. (0) | 2022.01.05 |
---|