-
[터미널] npm install 에러► React Native/개발일기 2023. 4. 7. 20:55반응형
선배에게 전달받은 react native 프로젝트를 xcode에서 실행하면서, 아래와 같은 에러가 발생하였다.
▼ 에러코드
% npm install
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @typescript-eslint/eslint-plugin@1.13.0
npm WARN Found: eslint@6.8.0
npm WARN node_modules/eslint
npm WARN dev eslint@"6.8.0" from the root project
npm WARN 7 more (@react-native-community/eslint-config, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer eslint@"^5.0.0" from @typescript-eslint/eslint-plugin@1.13.0
npm WARN node_modules/@typescript-eslint/eslint-plugin
npm WARN @typescript-eslint/eslint-plugin@"^1.5.0" from @react-native-community/eslint-config@0.0.5
npm WARN node_modules/@react-native-community/eslint-config
npm WARN
npm WARN Conflicting peer dependency: eslint@5.16.0
npm WARN node_modules/eslint
npm WARN peer eslint@"^5.0.0" from @typescript-eslint/eslint-plugin@1.13.0
npm WARN node_modules/@typescript-eslint/eslint-plugin
npm WARN @typescript-eslint/eslint-plugin@"^1.5.0" from @react-native-community/eslint-config@0.0.5
npm WARN node_modules/@react-native-community/eslint-config
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @typescript-eslint/parser@1.13.0
npm WARN Found: eslint@6.8.0
npm WARN node_modules/eslint
npm WARN dev eslint@"6.8.0" from the root project
npm WARN 7 more (@react-native-community/eslint-config, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer eslint@"^5.0.0" from @typescript-eslint/parser@1.13.0
npm WARN node_modules/@typescript-eslint/parser
npm WARN @typescript-eslint/parser@"^1.5.0" from @react-native-community/eslint-config@0.0.5
npm WARN node_modules/@react-native-community/eslint-config
npm WARN 1 more (@typescript-eslint/eslint-plugin)
npm WARN
npm WARN Conflicting peer dependency: eslint@5.16.0
npm WARN node_modules/eslint
npm WARN peer eslint@"^5.0.0" from @typescript-eslint/parser@1.13.0
npm WARN node_modules/@typescript-eslint/parser
npm WARN @typescript-eslint/parser@"^1.5.0" from @react-native-community/eslint-config@0.0.5
npm WARN node_modules/@react-native-community/eslint-config
npm WARN 1 more (@typescript-eslint/eslint-plugin)
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: eslint-plugin-react@7.12.4
npm WARN Found: eslint@6.8.0
npm WARN node_modules/eslint
npm WARN dev eslint@"6.8.0" from the root project
npm WARN 7 more (@react-native-community/eslint-config, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer eslint@"^3.0.0 || ^4.0.0 || ^5.0.0" from eslint-plugin-react@7.12.4
npm WARN node_modules/eslint-plugin-react
npm WARN eslint-plugin-react@"7.12.4" from @react-native-community/eslint-config@0.0.5
npm WARN node_modules/@react-native-community/eslint-config
npm WARN
npm WARN Conflicting peer dependency: eslint@5.16.0
npm WARN node_modules/eslint
npm WARN peer eslint@"^3.0.0 || ^4.0.0 || ^5.0.0" from eslint-plugin-react@7.12.4
npm WARN node_modules/eslint-plugin-react
npm WARN eslint-plugin-react@"7.12.4" from @react-native-community/eslint-config@0.0.5
npm WARN node_modules/@react-native-community/eslint-config
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: eslint-plugin-react-native@3.6.0
npm WARN Found: eslint@6.8.0
npm WARN node_modules/eslint
npm WARN dev eslint@"6.8.0" from the root project
npm WARN 7 more (@react-native-community/eslint-config, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer eslint@"^3.17.0 || ^4 || ^5" from eslint-plugin-react-native@3.6.0
npm WARN node_modules/eslint-plugin-react-native
npm WARN eslint-plugin-react-native@"3.6.0" from @react-native-community/eslint-config@0.0.5
npm WARN node_modules/@react-native-community/eslint-config
npm WARN
npm WARN Conflicting peer dependency: eslint@5.16.0
npm WARN node_modules/eslint
npm WARN peer eslint@"^3.17.0 || ^4 || ^5" from eslint-plugin-react-native@3.6.0
npm WARN node_modules/eslint-plugin-react-native
npm WARN eslint-plugin-react-native@"3.6.0" from @react-native-community/eslint-config@0.0.5
npm WARN node_modules/@react-native-community/eslint-config
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: react-native@0.62.2
npm ERR! Found: react@16.9.0
npm ERR! node_modules/react
npm ERR! react@"16.9.0" from the root project
npm ERR! peer react@"^16.8" from @react-native-community/async-storage@1.8.1
npm ERR! node_modules/@react-native-community/async-storage
npm ERR! @react-native-community/async-storage@"1.8.1" from the root project
npm ERR! 26 more (@react-native-community/cameraroll, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"16.11.0" from react-native@0.62.2
npm ERR! node_modules/react-native
npm ERR! react-native@"0.62.2" from the root project
npm ERR! peer react-native@">=0.59" from @react-native-community/async-storage@1.8.1
npm ERR! node_modules/@react-native-community/async-storage
npm ERR! @react-native-community/async-storage@"1.8.1" from the root project
npm ERR! 35 more (@react-native-community/cameraroll, ...)
npm ERR!
npm ERR! Conflicting peer dependency: react@16.11.0
npm ERR! node_modules/react
npm ERR! peer react@"16.11.0" from react-native@0.62.2
npm ERR! node_modules/react-native
npm ERR! react-native@"0.62.2" from the root project
npm ERR! peer react-native@">=0.59" from @react-native-community/async-storage@1.8.1
npm ERR! node_modules/@react-native-community/async-storage
npm ERR! @react-native-community/async-storage@"1.8.1" from the root project
npm ERR! 35 more (@react-native-community/cameraroll, ...)
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! .npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/.npm/_logs/2023-04-07T04_20_54_369Z-debug-0.log
▼ 해결방법
% npm install react-paypal-express-checkout --save --legacy-peer-deps
npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/
npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/
added 3 packages in 4s
51 packages are looking for funding
run `npm fund` for detailsnpm install react-paypal-express-checkout --save --legacy-peer-deps 로 해결되었다.
▼ 해결된 상태
npx react-native start 성공!
반응형'► React Native > 개발일기' 카테고리의 다른 글
[터미널] MAC에서 사용중인 포트 찾아서 kill 하기 (0) 2023.04.11 [Android] 'SDK location not found' 에러 해결 (0) 2023.04.11 [Xcode ] pod update 에러 해결 (0) 2023.04.07 [React Native] 데이터 가공 (데이터 키값의 이름 및 구조 변경) (0) 2023.03.17 [React Native] replaceAll 함수 (0) 2023.03.03