dpa99c / cordova-check-plugins

A CLI tool to check for / manage plugin updates in Cordova/Phonegap projects.
217 stars 25 forks source link

Cannot update plugin 'true' as it is not installed in the project #32

Open jaco-terbraak opened 5 years ago

jaco-terbraak commented 5 years ago
$ cordova-check-plugins --update

**********************
* Up-to-date plugins *
**********************

plugin: ionic-plugin-keyboard
source: npm://ionic-plugin-keyboard@^2.2.1
installed version: 2.2.1
remote version: 2.2.1

plugin: cordova-custom-config
source: npm://cordova-custom-config@^5.0.2
installed version: 5.0.2
remote version: 5.0.2

plugin: cordova-plugin-taptic-engine
source: npm://cordova-plugin-taptic-engine@^2.1.0
installed version: 2.1.0
remote version: 2.1.0

plugin: cordova-plugin-firebase
source: npm://cordova-plugin-firebase@^0.1.25
installed version: 0.1.25
remote version: 0.1.25

plugin: cordova-plugin-whitelist
source: npm://cordova-plugin-whitelist@^1.3.3
installed version: 1.3.3
remote version: 1.3.3

plugin: cordova-plugin-vibration
source: npm://cordova-plugin-vibration@^2.1.6
installed version: 2.1.6
remote version: 2.1.6

plugin: cordova-plugin-splashscreen
source: npm://cordova-plugin-splashscreen@^5.0.2
installed version: 5.0.2
remote version: 5.0.2

plugin: cordova-plugin-device
source: npm://cordova-plugin-device@^1.1.7
installed version: 1.1.7
remote version: 1.1.7

plugin: cordova-plugin-console
source: npm://cordova-plugin-console@^1.1.0
installed version: 1.1.0
remote version: 1.1.0

plugin: cordova-plugin-compat
source: npm://cordova-plugin-compat@^1.2.0
installed version: 1.2.0
remote version: 1.2.0

plugin: cordova-plugin-globalization
source: npm://cordova-plugin-globalization@^1.11.0
installed version: 1.11.0
remote version: 1.11.0

plugin: phonegap-plugin-barcodescanner
source: npm://phonegap-plugin-barcodescanner@^7.1.2
installed version: 7.1.2
remote version: 7.1.2

plugin: cordova-plugin-statusbar
source: npm://cordova-plugin-statusbar@^2.4.2
installed version: 2.4.2
remote version: 2.4.2

plugin: cordova-android-support-gradle-release
source: npm://cordova-android-support-gradle-release
installed version: 1.4.5
remote version: 1.4.5

*********************************
* Error checking plugin version *
*********************************

plugin: cordova-plugin-headercolor
source: npm://cordova-plugin-headercolor@^1.0.0
installed version: 1.0
remote version: 1.0.0
error: Error comparing versions: local version=1.0; target version=1.0.0; version error=Invalid Version: 1.0

***************************
* Plugin update available *
***************************

plugin: cordova-plugin-rollbar
source: npm://cordova-plugin-rollbar
installed version: 1.3.0
remote version: 1.4.1

Cannot update plugin 'true' as it is not installed in the project

Failed to update all specified plugins

$ cordova-check-plugins --version
4.0.3
jaco-terbraak commented 5 years ago
$ cordova --version
7.1.0

With cordova 8.1.2 I get the same result.

dpa99c commented 5 years ago

The --update argument requires that a value be specified (update mode or plugin IDs), e.g. --update=auto.

Currently --update with no value is not a valid argument and will result in this error.

jaco-terbraak commented 5 years ago

Shame on me for not reading.

Any chance you could add a little warning there, for people who suffer from the same deficiency?

Thanks!

dpa99c commented 5 years ago

It should probably default to --update=auto if --update is specified - that seems like sensible behaviour. I will update the code and docs accordingly.

jaco-terbraak commented 5 years ago

Sounds good! 👍