install failed code ERESOLVE
fukemy opened this issue · 1 comments
fukemy commented
hi, please help my problem
npm install --save @react-native-segmented-control/segmented-control
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: react-native-elements@3.4.2
npm ERR! Found: react-native-safe-area-context@4.2.4
npm ERR! node_modules/react-native-safe-area-context
npm ERR! peer react-native-safe-area-context@">= 3.0.0" from @react-navigation/bottom-tabs@6.3.1
npm ERR! node_modules/@react-navigation/bottom-tabs
npm ERR! @react-navigation/bottom-tabs@"^6.3.1" from the root project
npm ERR! peer react-native-safe-area-context@">= 3.0.0" from @react-navigation/elements@1.3.3
npm ERR! node_modules/@react-navigation/elements
npm ERR! @react-navigation/elements@"^1.3.3" from @react-navigation/bottom-tabs@6.3.1
npm ERR! node_modules/@react-navigation/bottom-tabs
npm ERR! @react-navigation/bottom-tabs@"^6.3.1" from the root project
npm ERR! @react-navigation/elements@"^1.3.3" from @react-navigation/material-bottom-tabs@6.2.1
npm ERR! node_modules/@react-navigation/material-bottom-tabs
npm ERR! @react-navigation/material-bottom-tabs@"^6.2.1" from the root project
npm ERR! 1 more (@react-navigation/native-stack)
npm ERR! 3 more (@react-navigation/material-bottom-tabs, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-native-safe-area-context@"^3.1.9" from react-native-elements@3.4.2
npm ERR! node_modules/react-native-elements
npm ERR! react-native-elements@"^3.4.2" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react-native-safe-area-context@3.4.1
npm ERR! node_modules/react-native-safe-area-context
npm ERR! peer react-native-safe-area-context@"^3.1.9" from react-native-elements@3.4.2
npm ERR! node_modules/react-native-elements
npm ERR! react-native-elements@"^3.4.2" 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/thehe/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/thehe/.npm/_logs/2022-04-14T07_49_34_244Z-debug-0.log
here is package.json file
{
"name": "vedaxlink",
"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-navigation/bottom-tabs": "^6.3.1",
"@react-navigation/material-bottom-tabs": "^6.2.1",
"@react-navigation/native": "^6.0.10",
"@react-navigation/native-stack": "^6.6.1",
"axios": "^0.26.1",
"ios": "^0.0.1",
"react": "17.0.2",
"react-native": "^0.68.0",
"react-native-app-auth": "^6.4.3",
"react-native-elements": "^3.4.2",
"react-native-janus": "^0.0.1",
"react-native-linear-gradient": "^2.5.6",
"react-native-paper": "^4.12.0",
"react-native-safe-area-context": "^4.2.4",
"react-native-screens": "^3.13.1",
"react-native-splash-screen": "^3.3.0",
"react-native-user-avatar": "^1.0.8",
"react-native-vector-icons": "^9.1.0",
"react-native-webrtc": "^1.100.0",
"rn-secure-storage": "^2.0.7"
},
"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.32.0",
"jest": "^26.6.3",
"metro-react-native-babel-preset": "^0.67.0",
"react-test-renderer": "17.0.2"
},
"jest": {
"preset": "react-native"
}
}
fukemy commented
DEAD LIB, decided to remove