Skip to content

"cordova-plugin-file@6.0.2" does not satisfy dependency plugin requirement #236

@hughknaus

Description

@hughknaus

Trying to use cordova-plugin-file-transfer in the same project that I'm using cordova-plugin-background-upload. However, with ionic repair the corodova prepare phase fails with:

Discovered plugin "cordova-plugin-file-transfer". Adding it to the project
Installing "cordova-plugin-file-transfer" for android
Failed to install 'cordova-plugin-file-transfer': CordovaError: Version of installed plugin: "cordova-plugin-file@6.0.2" does not satisfy dependency plugin requirement "cordova-plugin-file@>=7.0.0". Try --force to use installed plugin as dependency.
    at C:\Users\hknaus\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:526:43
Failed to restore plugin "cordova-plugin-file-transfer". You might need to try adding it again. Error: CordovaError: Version of installed plugin: "cordova-plugin-file@6.0.2" does not satisfy dependency plugin requirement "cordova-plugin-file@>=7.0.0". Try --force to use installed plugin as dependency.

cordova-plugin-background-upload has a dependency on cordova-plugin-file@6.0.2 while cordova-plugin-file-transfer has a dependency of cordova-plugin-file@>=7.0.0, how can these be used in the same project with the dependency disparity?

Snippet from my package.json:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions