인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

인프런 커뮤니티 질문&답변

좋은 양님의 프로필 이미지
좋은 양

작성한 질문수

배달앱 클론코딩 [with React Native]

리액트 내비게이션 사용해보기

[MacOS] npm install @react-navigation/native @react-navigation/native-stack 설치 에러 질문이요

작성

·

561

0

iMac FoodEliveryApp % npm install @react-navigation/native @react-navigation/native-stack
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: rn-async-storage-flipper@0.0.10
npm ERR! Found: react-native@0.68.2
npm ERR! node_modules/react-native
npm ERR!   peer react-native@"^0.0.0-0 || 0.60 - 0.68 || 1000.0.0" from @react-native-async-storage/async-storage@1.17.6
npm ERR!   node_modules/@react-native-async-storage/async-storage
npm ERR!     peer @react-native-async-storage/async-storage@"^1.15.2" from rn-async-storage-flipper@0.0.10
npm ERR!     node_modules/rn-async-storage-flipper
npm ERR!       rn-async-storage-flipper@"^0.0.10" from the root project
npm ERR!     @react-native-async-storage/async-storage@"^1.17.6" from the root project
npm ERR!   peer react-native@"*" from @react-native-community/cli@7.0.3
npm ERR!   node_modules/@react-native-community/cli
npm ERR!     @react-native-community/cli@"^7.0.3" from react-native@0.68.2
npm ERR!   8 more (react-native-flipper, redux-flipper, the root project, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react-native@"^0.62.0" from rn-async-storage-flipper@0.0.10
npm ERR! node_modules/rn-async-storage-flipper
npm ERR!   rn-async-storage-flipper@"^0.0.10" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: react-native@0.62.3
npm ERR! node_modules/react-native
npm ERR!   peer react-native@"^0.62.0" from rn-async-storage-flipper@0.0.10
npm ERR!   node_modules/rn-async-storage-flipper
npm ERR!     rn-async-storage-flipper@"^0.0.10" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /Users/iezlab/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/iezlab/.npm/_logs/2022-06-15T05_43_28_348Z-debug-0.log

 

 

라는 에러가 떠서 

$ npm install @react-navigation/native @react-navigation/native-stack --force 로 설치를해서 에러가 없는데 혹시 --force는 안붙히는게 좋다 하셧는데 지금같은 에러는 붙여도 상관이없을가요?

답변 1

0

제로초(조현영)님의 프로필 이미지
제로초(조현영)
지식공유자

네 rn-async-storage-flipper가 껴있는 에러메시지는 어쩔 수 없이 --force 하셔야합니다.

좋은 양님의 프로필 이미지
좋은 양
질문자

아.. ios는 pod install 하고 재시작 해줘야 되는군요 계속 에러떠서 헤맷네여ㅜㅜㅜ

좋은 양님의 프로필 이미지
좋은 양

작성한 질문수

질문하기