Error installing sqlite plugin with Capacitor 5.0.2

Hi !
I am newbie in this word so I need a little patiente,please.
I am trying to iinstall sqlite plugin using Capacitor 5.0.2 and Ionic 7.1.1 angular/cli 16.0.0 and I get these errors

C:\dev\Angular\devdacticSql>npm install --save @capacitor-community/sqlite
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: devdacticSql@0.0.1
npm ERR! Found: @capacitor/core@5.0.2
npm ERR! node_modules/@capacitor/core
npm ERR! @capacitor/core@“5.0.2” from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @capacitor/core@“^4.0.0” from @capacitor-community/sqlite@4.8.0-0
npm ERR! node_modules/@capacitor-community/sqlite
npm ERR! @capacitor-community/sqlite@“*” 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 C:\Users\PC-2\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\PC-2\AppData\Local\npm-cache_logs\2023-05-10T16_50_45_171Z-debug-0.log

I did a new project blank to use SQLite so I dont have any new
–ionic start devdacticSql blank --type=angular --capacitor

Any cluees?

Thks In Advance

@capacitor-community/sqlite hasn’t been updated to support Capacitor 5 and npm complains about it.
You can install using --force or install using the next tag as it contains the beta version of the plugin with Capacitor 5 support.

for option 1: npm install --save @capacitor-community/sqlite --force
for option 2: npm install --save @capacitor-community/sqlite@next

1 Like

Thks!! Bro!
You save my life, it works! I used the next tag

Thak yOu :slight_smile: