Open malutanpetronel opened 1 year ago
can you please check ?
cordova platform add android fail too
nvd:~reco/alarm4$ cordova platform add android
Using cordova-fetch for cordova-android@^9.0.0
Failed to fetch platform cordova-android@^9.0.0
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
CordovaError: Error: npm: Command failed with exit code 1 Error output:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: cordova_script@1.0.0
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR! peer react@">=16.x" from @fortawesome/react-fontawesome@0.1.15
npm ERR! node_modules/@fortawesome/react-fontawesome
npm ERR! @fortawesome/react-fontawesome@"^0.1.14" from adminlte-2-react@0.1.30
npm ERR! node_modules/adminlte-2-react
npm ERR! adminlte-2-react@"^0.1.30" from the root project
npm ERR! peer react@"*" from @testing-library/react@11.2.7
npm ERR! node_modules/@testing-library/react
npm ERR! @testing-library/react@"^11.1.0" from the root project
npm ERR! 21 more (mini-create-react-context, prop-types-extra, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0.0" from cordova_script@1.0.0
npm ERR! node_modules/cordova_script
npm ERR! cordova_script@"^1.0.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react@16.14.0
npm ERR! node_modules/react
npm ERR! peer react@"^16.0.0" from cordova_script@1.0.0
npm ERR! node_modules/cordova_script
npm ERR! cordova_script@"^1.0.0" 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!
npm ERR! For a full report see:
npm ERR! ....npm/_logs/2023-05-03T12_58_16_284Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: ....npm/_logs/2023-05-03T12_58_16_284Z-debug-0.log
try npm i --legacy-peer-deps
Any ideea why this happen: