You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v8.x
Current Behavior
When starting a new blank project with ionic start for the React framework, I get a dependency error:
$ ionic start
...
> npm i --save -E @capacitor/haptics @capacitor/app @capacitor/keyboard @capacitor/status-bar
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: @capacitor/[email protected]
npm error node_modules/@capacitor/core
npm error @capacitor/core@"6.2.1" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @capacitor/core@">=7.0.0" from @capacitor/[email protected]
npm error node_modules/@capacitor/haptics
npm error @capacitor/haptics@"*" 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 /home/username/.npm/_logs/2025-04-01T05_53_45_459Z-eresolve-report.txt
npm error A complete log of this run can be found in: /home/username/.npm/_logs/2025-04-01T05_53_45_459Z-debug-0.log
[ERROR] An error occurred while running subprocess npm.
npm i --save -E @capacitor/haptics @capacitor/app @capacitor/keyboard @capacitor... exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
...
I think the problem is that capacitor/core is not yet available in Version 7.0.0. Anyway, a way to install the packages is using the --legacy-peer-deps option as suggested in the error message.
Hey! I suspect this is an issue relating to an incident Capacitor had earlier this week where they accidentally identified 6.2.1 as latest. That has since been resolved. Please try again and see if the issue persists.
Thanks for the issue! This issue is being closed due to the lack of a reply. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Prerequisites
Ionic Framework Version
v8.x
Current Behavior
When starting a new blank project with
ionic start
for the React framework, I get a dependency error:I think the problem is that capacitor/core is not yet available in Version 7.0.0. Anyway, a way to install the packages is using the
--legacy-peer-deps
option as suggested in the error message.Expected Behavior
There should not be any dependency error.
Steps to Reproduce
ionic start
Code Reproduction URL
not possible
Ionic Info
Ionic:
Utility:
System:
Additional Information
Some details about my system:
The text was updated successfully, but these errors were encountered: