inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

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

앱 이름 바꾸기, 강좌 폴더 구조 잡기

package 관련 문의

211

bmlist626

작성한 질문수 2

0

안녕하세요 현재 수강중인 수강생인데
 
{
"name": "awesomeproject",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"@react-native-async-storage/async-storage": "^1.17.6",
"react": "17.0.2",
"react-native": "0.67.4",
"react-native-flipper": "^0.146.1",
"redux-flipper": "^2.0.1",
"rn-async-storage-flipper": "^0.0.10"
},
"devDependencies": {
"@babel/core": "^7.12.9",
"@babel/runtime": "^7.12.5",
"@react-native-community/eslint-config": "^2.0.0",
"babel-jest": "^26.6.3",
"eslint": "7.14.0",
"jest": "^26.6.3",
"metro-react-native-babel-preset": "^0.66.2",
"react-test-renderer": "17.0.2"
},
"jest": {
"preset": "react-native"
}
}
 
위는 제 packge.json 상황이고 npm 으로 flipper 관련 설치하면 그다음부터 패키지들 설치시 오류가 나옵니다. navigation 부터 설치가 안되는데 아래는 에러 화면입니다.
 
 
 
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.67.4
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@6.4.0
npm ERR! node_modules/@react-native-community/cli
npm ERR! @react-native-community/cli@"^6.0.0" from react-native@0.67.4
npm ERR! 4 more (react-native-flipper, redux-flipper, the root project, @react-navigation/native)
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!
 
 
버젼 문제인것도 같아서 여러가지 재설치 및 구글링을 해봤는데 해결이 되지않아 문의 올리는데 어디가 문제인지 모르겠습니다. 참고로 프로젝트 생성시 template type script를 이용한 경우 버젼을 지정해도 최신버젼인 0.68.2로 생성이 되어 일단 메인 버젼을 맞추기 위해 type script는 빼고 0.67.4 버젼으로 생성했습니다.

react-native

답변 1

0

제로초(조현영)

설치명령어 뒤에 --force를 붙이세요. 참고로 0.68.2를 하면 한글 앱 이름을 입력할 때 튕길 수 있습니다.

앱실행시 네이버맵 [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