Why can't I install the community SQLite from capacitor?

Discussão em 'Angular' iniciado por Gappy, Janeiro 22, 2025.

  1. Gappy

    Gappy Guest

    When I try to run this command: npm i @capacitor-community/sqlite on the terminal, I Get this error:

    npm error ERESOLVE could not resolve
    npm error
    npm error While resolving: examengerardollanos@0.0.0
    npm error Found: @capacitor/core@7.0.1
    npm error node_modules/@capacitor/core
    npm error peer @capacitor/core@">=7.0.0" from @capacitor/app@7.0.0
    npm error node_modules/@capacitor/app
    npm error @capacitor/app@"latest" from the root project
    npm error peer @capacitor/core@">=7.0.0" from @capacitor/haptics@7.0.0
    npm error node_modules/@capacitor/haptics
    npm error @capacitor/haptics@"latest" from the root project
    npm error 3 more (@capacitor/keyboard, @capacitor/status-bar, the root project)
    npm error
    npm error Could not resolve dependency:
    npm error @capacitor-community/sqlite@"*" from the root project
    npm error
    npm error Conflicting peer dependency: @capacitor/core@6.2.0
    npm error node_modules/@capacitor/core
    npm error peer @capacitor/core@"^6.0.0" from @capacitor-community/sqlite@6.0.2
    npm error node_modules/@capacitor-community/sqlite
    npm error @capacitor-community/sqlite@"*" 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\shoky\AppData\Local\npm-cache\_logs\2025-01-22T04_24_51_152Z-eresolve-report.txt
    npm error A complete log of this run can be found in: C:\Users\shoky\AppData\Local\npm-cache\_logs\2025-01-22T04_24_51_152Z-debug-0.log


    This is what's in the log:

    # npm resolution error report

    While resolving: examengerardollanos@0.0.0
    Found: @capacitor/core@7.0.1
    node_modules/@capacitor/core
    peer @capacitor/core@">=7.0.0" from @capacitor/app@7.0.0
    node_modules/@capacitor/app
    @capacitor/app@"latest" from the root project
    peer @capacitor/core@">=7.0.0" from @capacitor/haptics@7.0.0
    node_modules/@capacitor/haptics
    @capacitor/haptics@"latest" from the root project
    peer @capacitor/core@">=7.0.0" from @capacitor/keyboard@7.0.0
    node_modules/@capacitor/keyboard
    @capacitor/keyboard@"latest" from the root project
    peer @capacitor/core@">=7.0.0" from @capacitor/status-bar@7.0.0
    node_modules/@capacitor/status-bar
    @capacitor/status-bar@"latest" from the root project
    @capacitor/core@"latest" from the root project

    Could not resolve dependency:
    @capacitor-community/sqlite@"*" from the root project

    Conflicting peer dependency: @capacitor/core@6.2.0
    node_modules/@capacitor/core
    peer @capacitor/core@"^6.0.0" from @capacitor-community/sqlite@6.0.2
    node_modules/@capacitor-community/sqlite
    @capacitor-community/sqlite@"*" from the root project

    Fix the upstream dependency conflict, or retry
    this command with --force or --legacy-peer-deps
    to accept an incorrect (and potentially broken) dependency resolution.


    I don't know if I can ask two questions, but it's related, so, when I created an empty TypeScript file called 'publicacion.ts', I get this notification on VS Code:

    "A project in the workspace is using a newer version of Angular than the language service extension. This may cause the extension to show incorrect diagnostics."


    Why are all this errors occurring? A couple weeks ago everything worked perfectly, and I have both extensions up to date; Angular Language Service and Ionic. Should I work on the project on earlier versions?

    Continue reading...

Compartilhe esta Página