Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Something weird #39

Open
malutanpetronel opened this issue May 3, 2023 · 4 comments
Open

Something weird #39

malutanpetronel opened this issue May 3, 2023 · 4 comments

Comments

@malutanpetronel
Copy link

malutanpetronel commented May 3, 2023

Any ideea why this happen:

nvd:~/Documents/reco$ reco init ro.webnou.flom "FLOM"
? Please select project template Reco template

---------reco start to build react-app---------
reco-cli-init-react ERROR : Error: Command failed: npx create-react-app flom

reco-cli-init--install-react.cordova-navigation_controller ERROR : Error: Command failed: npm i cordova_script react.cordova-navigation_controller react-browser-notifications
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"^18.2.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0.0" from [email protected]
npm ERR! node_modules/cordova_script
npm ERR!   cordova_script@"*" 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-03T11_15_29_222Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: ~....npm/_logs/2023-05-03T11_15_29_222Z-debug-0.log

add reco scripts to package.json.

@malutanpetronel
Copy link
Author

can you please check ?
image

@malutanpetronel
Copy link
Author

malutanpetronel commented May 3, 2023

same as issue 35

@malutanpetronel
Copy link
Author

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: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   peer react@">=16.x" from @fortawesome/[email protected]
npm ERR!   node_modules/@fortawesome/react-fontawesome
npm ERR!     @fortawesome/react-fontawesome@"^0.1.14" from [email protected]
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/[email protected]
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 [email protected]
npm ERR! node_modules/cordova_script
npm ERR!   cordova_script@"^1.0.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR!   peer react@"^16.0.0" from [email protected]
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

@orchuban
Copy link
Collaborator

orchuban commented May 3, 2023

try npm i --legacy-peer-deps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants