inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

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

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

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

626

좋은 양

작성한 질문수 9

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는 안붙히는게 좋다 하셧는데 지금같은 에러는 붙여도 상관이없을가요?

react-native

답변 1

0

제로초(조현영)

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

0

좋은 양

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

앱실행시 네이버맵 [401] 에러

0

1064

2

스타일링 라이브러리

0

160

2

expo, cli 선택 중에 고민이 있습니다.

0

180

2

JDK 버전이 달라도 괜찮나요?

0

240

2

dimenstion usewindowdeminstion

0

130

3

[맥 전용]환경 설정하기 1편 & [맥 전용]환경 설정하기 2편의 영상이 안나옵니다.

0

218

1

jdk11 버전과 gradle 버전의 호환성 관련 질문드립니다.

0

407

2

강의 외 질문입니다!

0

164

2

react native랑 맞는 ui 라이브러리 어떤게 좋을까요?

0

1554

2

react native와 spring boot 연결

0

365

1

java가 아닌 .kt에서 code push 에러가 발생합니다.

0

222

2

flipper 239 에러가 발생합니다.

0

173

2

package.json에 /lib/panino.js 문제입니다.

0

481

2

window - mac 협업 과정 질문합니다

0

221

1

ios 빌드 중 RCTBridgeDelegate.h import 오류

0

294

2

ios 앱 빌드 중 hermesEnabled 관련 오류발생

0

249

2

Socket 연결시 질문 드립니다.!

0

157

2

wifi 환경에서 axios 통신이 로컬서버에서 안됩니다.

0

430

2

iOS render error 질문드립니다.

0

417

2

iOS 가상머신 오류

0

173

2

npc react init 명령어 실행시 발생되는 오류

0

224

1

nom start 시 오류

0

122

1

NextJS 기반으로 만들어서 웹뷰 React Native로 배포 가능한가요?

0

1019

2

안드로이드 rn75 버전에 맞게 설정 중에 android13 다운로드에 대해서 막혔습니다!

0

187

2