Could someone please help me to solve this error when trying to install npm on my react-native project taht I upgraded from version 0.71.1 to 0.76.5 ?
node version installed: 18.20.4 npm version installed: 10.8.2
Extract of package.json:
`"native-base": "^3.4.28",
"patch-package": "^8.0.0",
"postinstall-postinstall": "^2.1.0",
"pusher-js": "^8.4.0-rc2",
"react": "18.3.1",
"react-dom": "^19.0.0",
"react-i18next": "^15.4.0",
"react-native": "0.76.5",
"engines": {
"node": ">=18"
}`
Error: PS C:\Users\sissa\Documents\myapp-January> npm install
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/react
npm error react@"18.3.1" from the root project
npm error peer react@"*" from [email protected]
npm error node_modules/native-base
npm error native-base@"^3.4.28" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@"^19.0.0" from [email protected]
npm error node_modules/react-dom
npm error react-dom@"^19.0.0" from the root project
npm error peer react-dom@"*" from [email protected]
npm error node_modules/native-base
npm error native-base@"^3.4.28" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error C:\Users\sissa\AppData\Local\npm-cache\_logs\2025-01-18T11_19_46_143Z-eresolve-report.txt
I would like to install node_modules without having to use --legacy-peer-deps
Thnaks for your inputs