Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

this plugin is not yet compatible with code-push v4 correct ? #638

Open
vesper8 opened this issue Aug 11, 2020 · 2 comments
Open

this plugin is not yet compatible with code-push v4 correct ? #638

vesper8 opened this issue Aug 11, 2020 · 2 comments

Comments

@vesper8
Copy link

vesper8 commented Aug 11, 2020

I just tried updating multiple dependencies and when I try to install this plugin after installing code-push code-push 4.0.1 I get this error Version of installed plugin: "[email protected]" does not satisfy dependency plugin requirement "code-push@^3.0.1". Try --force to use installed plugin as dependency.

So I'm assuming in order to use cordova-plugin-code-push 1.13 I have to stay on code-push 3.0.1 is that right?

@vesper8
Copy link
Author

vesper8 commented Aug 11, 2020

also, I can't seem to get 1.13 to be installed even with code-push 3.0.1

Even though my package.json says "cordova-plugin-code-push": "^1.13.0",, when I do cordova plugin add cordova-plugin-code-push it always installs 1.12.5

Even if I use cordova plugin add cordova-plugin-code-push@latest or cordova plugin add [email protected] it still installs 1.12.5

Even if I cordova plugin rm cordova-plugin-code-push first

@mreis1
Copy link

mreis1 commented Jun 22, 2021

Saw this in XCODE console
`WARN: Native: tried calling CodePush.sync, but the CodePush plugin is not installed.

Then tried to run:
$ cordova plugin add cordova-plugin-code-push

Which resulted in:

Installing "cordova-plugin-code-push" for ios
Failed to install 'cordova-plugin-code-push': CordovaError: Version of installed plugin: "[email protected]" does not satisfy dependency plugin requirement "code-push@^3.0.1". Try --force to use installed plugin as dependency.
    at /Users/mr/.nvm/versions/node/v10.20.1/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:526:43
Version of installed plugin: "[email protected]" does not satisfy dependency plugin requirement "code-push@^3.0.1". Try --force to use installed plugin as dependency.`

Which is being caused by
https://github.com/microsoft/cordova-plugin-code-push/blob/master/plugin.xml#L9

My temporary fix:
$ cordova plugin remove code-push
$ npm install code-push@^3.0.1
$ cordova plugin add cordova-plugin-code-push

Now it works

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

No branches or pull requests

2 participants