Code Monkey home page Code Monkey logo

cordova-check-plugins's People

Contributors

dependabot[bot] avatar dpa99c avatar jetersen avatar maicolben avatar qkdreyer avatar simonwaterer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cordova-check-plugins's Issues

Not detecting new version available when using @1.0.1

Hello. Very nice and useful plugin!
Unluckily, is not working for me though:
Here is the output of cordova-check-plugins --verbose:

Checking latest npm registry version for 'cordova-plugin-geolocation' using '[email protected]'
plugin: cordova-plugin-geolocation
source: npm://[email protected]
installed version: 1.0.1
remote version: 1.0.1

For adding that plugin I used the command:
cordova add plugin [email protected]
Because I want to have full control over the versions I'm using. The idea of using this plugin is to detect if there is a new version of the plugin I use or not (similar to how npm-check-updates works).

Instead of just removing version when using unconstrain-version the id is blanked

I'm submitting a ... (check one with "x"):

  • bug report
  • feature request
  • documentation issue

Bug report

Everything after first @ is stripped to remove version, that conflict with plugins, where @ is included in the id

Current behavior:

Using plugin
"@mauron85/cordova-plugin-background-geolocation": "^3.0.3",

cordova-check-plugins fails when this code is executed

var idToCheck = unconstrainVersions ? source.id.replace(/(@([^~]?).*)$/, '') : source.id;

as idToCheck now is blank

Check for version fails

Changing the regex to @([^@]+)$ that takes the last @ solves the problem

Enhancement of the output when a plugin is not really updated

I suggest an enhancement of the output, if possible.

When i use the CLI, i see that 3 plugins may be updated :

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


***************************
* Plugin update available *
***************************
plugin: cordova-android-support-gradle-release
source: npm://cordova-android-support-gradle-release@^1.1.5
installed version: 1.1.5
remote version: 1.2.0

plugin: cordova-plugin-file
source: npm://[email protected]
installed version: 5.0.0
remote version: 6.0.1

plugin: es6-promise-plugin
source: npm://[email protected]
installed version: 4.1.0
remote version: 4.2.2

So i use the option to update them interactively

cordova-check-plugins --update=interactive

? Update 'es6-promise-plugin from 4.1.0 to 4.2.2? Yes


? Update 'cordova-plugin-file from 5.0.0 to 6.0.1? Yes


? Update 'cordova-android-support-gradle-release from 1.1.5 to 1.2.0? Yes

So the ouput seems suggest that the 3 plugins have been updated.

But the asumption is wrong, only the third one is updated. The first two don't have been updated because these exact versions are required by other plugins.

So it would be handy to have an ouput to reflect that at the time a plugin is updating (for example "this plugin can't be updated because it is a dependency of ...").

Remove only specific plugin completely from project directory

Is it possible to completely remove only specific plugin from project directory? Completely means removing from package.json file, config.xml file, plugins directory, www directory, fetch.json file and etc so that all inconsistent states of the plugin resolves in next cordova build.

found 77 vulnerabilities (9 low, 57 moderate, 9 high, 2 critical)

It seems this module is kinda critical to use and not recommended:

npm i cordova-check-plugins
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: The major version is no longer supported. Please update to 4.x or newer
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN [email protected] requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of webpack@^1.9 || ^2 || ^2.1.0-beta || ^2.2.0-rc || ^3.0.0 but none is installed. You must install peer dependencies yo
urself.
npm WARN [email protected] requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ [email protected]
updated 3 packages and audited 64861 packages in 19.976s
found 77 vulnerabilities (9 low, 57 moderate, 9 high, 2 critical)
  run `npm audit fix` to fix them, or `npm audit` for details

When I run npm audit > npm-audit.log I get like all details for all issues, and all related to this module, file attached (npm-audit.log) since it is really big, but for critical and high one:

Critical Paths:

cordova-check-plugins > plugman > cordova-lib > tar
cordova-check-plugins > plugman > cordova-lib > cordova-js > browserify > shell-quote

High Paths:

cordova-check-plugins > cordova > cordova-lib > cordova-js > browserify > cached-path-relative
cordova-check-plugins > cordova > cordova-lib > cordova-js > browserify > module-deps > cached-path-relative
cordova-check-plugins > plugman > cordova-lib > npm > node-gyp > request > http-signature > sshpk
cordova-check-plugins > plugman > cordova-lib > npm > npm-registry-client > request > http-signature > sshpk
cordova-check-plugins > plugman > cordova-lib > npm >  request > http-signature > sshpk
cordova-check-plugins > plugman > cordova-lib > npm > node-gyp > request > tough-cookie
cordova-check-plugins > plugman > cordova-lib > npm > npm-registry-client > request > tough-cookie
cordova-check-plugins > plugman > cordova-lib > npm > request > tough-cookie 
cordova-check-plugins > plugman > cordova-lib > cordova-js > browserify > glob > minimatch

cordova-check-plugins --update=auto is mess up with plugins

I just installed this module, and seems not working well, even with issues like #34 I got another strange issues with module messing up the project.

I got the following plugins in config:

    <plugin name="cordova-plugin-device" spec="^2.0.2" />
    <plugin name="cordova-plugin-inappbrowser" spec="^3.0.0" />
    <plugin name="cordova-plugin-splashscreen" spec="^5.0.2" />
    <plugin name="cordova-plugin-whitelist" spec="^1.3.3" />
    <plugin name="cordova-plugin-statusbar" spec="^2.4.2" />
    <plugin name="cordova-plugin-ionic-keyboard" spec="^2.1.3" />
    <plugin name="cordova-plugin-file" spec="^6.0.1" />
    <plugin name="cordova-plugin-file-opener2" spec="^2.1.4">
        <variable name="ANDROID_SUPPORT_V4_VERSION" value="27.+" />
    </plugin>
    <plugin name="cordova-plugin-x-toast" spec="^2.7.2" />
    <plugin name="cordova-plugin-app-version" spec="~0.1.9" />
    <plugin name="cordova-plugin-ionic-webview" spec="~3.1.2">
        <variable name="ANDROID_SUPPORT_ANNOTATIONS_VERSION" value="27.+" />
    </plugin>
    <engine name="android" spec="7.1.4" />
    <engine name="ios" spec="5.0.0" />

And in package.json:

  "dependencies": {
    "cordova-android": "7.1.4",
    "cordova-ios": "5.0.0",
    "cordova-plugin-app-version": "0.1.9",
    "cordova-plugin-device": "^2.0.2",
    "cordova-plugin-file": "6.0.1",
    "cordova-plugin-file-opener2": "^2.1.4",
    "cordova-plugin-inappbrowser": "^3.0.0",
    "cordova-plugin-ionic-keyboard": "^2.1.3",
    "cordova-plugin-ionic-webview": "^3.1.2",
    "cordova-plugin-splashscreen": "^5.0.2",
    "cordova-plugin-statusbar": "^2.4.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "cordova-plugin-x-toast": "2.7.2"
  },
  "cordova": {
    "platforms": [
      "android",
      "ios"
    ],
    "plugins": {
      "cordova-plugin-device": {},
      "cordova-plugin-inappbrowser": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-whitelist": {},
      "cordova-plugin-ionic-webview": {
        "ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
      },
      "cordova-plugin-statusbar": {},
      "cordova-plugin-ionic-keyboard": {},
      "cordova-plugin-file": {},
      "cordova-plugin-file-opener2": {
        "ANDROID_SUPPORT_V4_VERSION": "27.+"
      },
      "cordova-plugin-x-toast": {},
      "cordova-plugin-app-version": {}
    }
  }

After I ran cordova-check-plugins --update=auto many times, I found that the project broken, I saw that the command downgraded cordova-plugin-ionic-webview to 3.1.0 and removed cordova-plugin-file-opener2 at all, from package.json and config.xml.

This should not be happening, also until now, it detects only version 3.1.0 for cordova-plugin-ionic-webview:

plugin: cordova-plugin-ionic-webview
source: npm://[email protected]
installed version: 3.1.0
remote version: 3.1.0

I only run cordova-check-plugins --update=auto or cordova-check-plugins --update=auto --verbose nothing else added

Stopped working??

Hi, i have been using this tool together with an Ionic V1.3.5 app and it seems now that it doesn't figure out any more if there is an updated plugin...

The spinner runs, and in verbose mode you can see that it checks all the different NPM sites but in the end it gives out a report listing all my plugins as being uptodate....

Which they arent...

I have tried all the modes (auto, interactive) and also --force but cannot get the tool to work properly

BR

Not working with phonegap 8.0

Hello,

I cannot get it to work with Phonegap 8.0

I am using the nose.js command prompt in windows 10 64bit.

Running this command:
cordova-check-plugins --update=auto --force

It looks like it is working but none of the package.json files or config.xml have the new versions of each core plugin:

I can run your command many times, it will still shows the old to new versions.

Updated 'cordova-plugin-whitelist' from 1.2.2 to 1.3.3
Updated 'cordova-plugin-vibration' from 2.1.6 to 3.0.1
Updated 'cordova-plugin-statusbar' from 2.1.3 to 2.4.1
Updated 'cordova-plugin-splashscreen' from 3.2.2 to 5.0.2
Updated 'cordova-plugin-network-information' from 1.2.1 to 2.0.1
Updated 'cordova-plugin-media' from 2.2.0 to 5.0.2
Updated 'cordova-plugin-inappbrowser' from 1.3.0 to 2.0.2
Updated 'cordova-plugin-geolocation' from 2.1.0 to 4.0.1
Updated 'cordova-plugin-file-transfer' from 1.5.1 to 1.7.1
Updated 'cordova-plugin-dialogs' from 1.2.1 to 2.0.1
Updated 'cordova-plugin-device-orientation' from 1.0.7 to 2.0.0
Updated 'cordova-plugin-device-motion' from 1.2.5 to 2.0.0
Updated 'cordova-plugin-device' from 1.1.7 to 2.0.1
Updated 'cordova-plugin-contacts' from 2.0.1 to 3.0.1
Updated 'cordova-plugin-console' from 1.0.7 to 1.1.0
Updated 'cordova-plugin-media-capture' from 1.2.0 to 3.0.1
Updated 'cordova-plugin-camera' from 2.1.1 to 4.0.2
Updated 'cordova-plugin-battery-status' from 1.1.2 to 2.0.1

Automatically updated all outdated plugins

C:\laragon\www\android>

Any idea why please?

Thank you.

strange error on running with --update

I get the following error:

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

Failed to update all specified plugins

When I run with --update without the = parameter.

Perhaps a better error indicating how to use it.

[FEATURE] Option to remove plugins not in config.xml

Currently if plugins aren't in config.xml it simply lists them. It would be great if you could pass a '--remove' command line option. This would remove the plugins that aren't in config.xml automatically to ensure your dev environment matches the config.xml.

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

$ 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

How to avoid error message, when checking plugins?

I am using a clone of a plugin
https://github.com/vash15/me.apla.cordova.app-preferences.git
mostly because the original author never responds.

but when checking with cordova-check-plugins I get this error message:

Error: Failed to check npm registry for plugin 'cordova-plugin-app-preferences': Error: Command failed: npm view "https://github.com/vash15/me.apla.cordova.app-preferences.git" version

and that is kind of expected as the clone is not present in the NPM-registry, but I would like to suppress that message, is that possible?

Can't install with Node 9.2.1

After I updated to Node 9.2.1 I can't install cordova-check-plugins anymore.
Here is the error:

npm ERR! path /usr/local/lib/node_modules/cordova-check-plugins/node_modules/npm/node_modules/ansistyles
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/cordova-check-plugins/node_modules/npm/node_modules/ansistyles' -> '/usr/local/lib/node_modules/cordova-check-plugins/node_modules/npm/node_modules/.ansistyles.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/marcocristalli-pro/.npm/_logs/2017-12-11T11_13_27_304Z-debug.log

Plugin order

Hi, first of all, thanks for the amazing plugin!
I would like to show the plugins with available updates at the bottom of the console.
When there's many plugins, you have to scroll to the top to see if there's some update available.

TypeError: Cannot read property '1' of null

Hi, i've just installed the plugin and when running:

cordova-check-plugins
I got this error:

/cordova-check-plugins/index.js:125
        user = parts[1],
                    ^
TypeError: Cannot read property '1' of null

I am missing anything? Thank you

update completes, but nothing updated

cordova-check-plugins --update=interactive

I did this, updated everything I wanted, cordova-check-plugins doesn't show anything that needs updated, however, the config.xml and the plugins directory still has all the old plugins.

Any idea?

Failed to update some plugins

cordova-plugin-image-picker says it updates, but doesn't

====================================================================

Updating 'cordova-plugin-file'... -
Error removing plugin 'cordova-plugin-file'

Error: Command failed: cordova plugin rm cordova-plugin-file
Error: The plugin 'cordova-plugin-file' is required by (cordova-plugin-file-transfer, cordova-plugin-media-capture), skipping uninstallation. (try --force if trying to update)

Failed to update plugin 'cordova-plugin-file'

====================================================================

Updating 'cordova-plugin-compat'...
Error removing plugin 'cordova-plugin-compat'

Error: Command failed: cordova plugin rm cordova-plugin-compat
Error: The plugin 'cordova-plugin-compat' is required by (cordova-plugin-file-transfer, cordova-plugin-media-capture, cordova-plugin-camera, cordova-plugin-contacts), skipping uninstallation. (try --force if trying to update)

Failed to update plugin 'cordova-plugin-compat'

Fails if plugin has npm account name in name

Hi! Love this tool! Hope you can fix when you get the time..
The tool seems to fail if the plugin name contains a npm account in it

cordova-check-plugins

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

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

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

plugin: @globules-io/cordova-plugin-ios-xhr
source: npm://@globules-io/cordova-plugin-ios-xhr@^1.1.0
installed version: UNKNOWN - check plugins/fetch.json for orphaned entries
remote version: 1.1.0

fetch.json has

"@globules-io/cordova-plugin-ios-xhr": {
    "source": {
      "type": "registry",
      "id": "@globules-io/cordova-plugin-ios-xhr@^1.1.0"
    },
    "is_top_level": true,
    "variables": {}
  },

Let me know if you need more info.

BSF Cordova Ecosystem Crowdfunding Plan

Hello everyone,

I'm Jason.z, the founder of BSF.

We've noticed that this project has remained very popular in the past.

However, unfortunately, it seems that this project has not been maintained for some time,

which is unfortunate for users who want to continue using and supporting the project.

Based on this, BSF has initiated the Cordova Ecosystem Crowdfunding Plan ,

with the main purpose of addressing the upgrading and maintenance of old Cordova projects,

as well as compatibility and adaptability for new platforms.

You can learn more about it by clicking on this link.

So, if you feel that this project needs continued upgrading and maintenance,

please let us know through voting.

We will decide whether to launch a crowdfunding plan for this project based on the voting results and the recruitment of maintainers,

as well as the subsequent development and maintenance plans.

If you are willing to be a long-term maintainer of the project, you can also contact us.

Of course, if you do not agree with the operating model of BSF Software Foundation,

or if you are a maintenance team for this project and believe that this ISSUE infringes and damages your rights,

you can also delete this ISSUE.

We sincerely apologize for any inconvenience this may cause.

BSF is our bold attempt and exploration of the sustainable development of software projects.

We hope to contribute to the development of software projects through the power of the community!

Install warnings

Installing this plugin throws the following warnings:

npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Use uuid module instead
/home/user/.nvm/versions/node/v10.15.1/bin/cordova-check-plugins -> /home/user/.nvm/versions/node/v10.15.1/lib/node_modules/cordova-check-plugins/index.js
npm WARN [email protected] requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.

+ [email protected]
added 957 packages from 988 contributors in 45.828s

fails after cordova clean

cordova-check-plugins fails after doing cordova clean when a plugin update is available.
the error says: /platforms/android/assets/www/cordova_plugins.js is missing

cordova-check-plugins doesn't detect all changes

Hello Dave,

I don't understand how cordova-check-plugins watches the new versions plugins because on my project, when i run cordova-check-plugins, I see :

**********************
* Up-to-date plugins *
**********************
plugin: cordova.plugins.diagnostic
source: npm://[email protected]
installed version: 3.9.2
remote version: 3.9.2

plugin: phonegap-plugin-barcodescanner
source: npm://[email protected]
installed version: 7.0.2
remote version: 7.0.2

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

plugin: cordova-open-native-settings
source: npm://[email protected]
installed version: 1.4.1
remote version: 1.5.0

Only cordova-open-native-settings is seen as an old version. But cordova.plugins.diagnostic and phonegap-plugin-barcodescanner have newer versions too.

So what I do wrong ?

I use [email protected] and [email protected].

Error when updating plugins with variables

When updating plugins that needs variables (e.g phoengap-plugin-push). The app raises an error even when the variable exists in config.xml file

Updating 'phonegap-plugin-push'...
Error adding plugin 'phonegap-plugin-push'
Error: Command failed: cordova plugin add phonegap-plugin-push --save
Error: Variable(s) missing (use: --variable SENDER_ID=value).
Failed to update plugin 'phonegap-plugin-push'

Inconsistent errors when checking for updates

greetings.. :) I only just discovered this tool, so the only version I've tried so far is 4.0.4. but it doesn't seem to want to play nicely on my system..

  • Windows 10 (1807, OS build 17134.407)
  • Node 8.11.4
  • NPM 6.4.1
  • Cordova 8.1.2 ([email protected])
  • Phonegap 8.2.2 (included simply because this is what I use for project CLI actions)

basically, each time I run cordova-check-plugins from my project root, I get different results, most of which fail with the line "remote version: UNKNOWN - check remote source is valid".

beyond that, I also see some strange discrepancies with detecting the currently install versions:

  • cordova-plugin-camera
    • package.json: ^2.4.1
    • package-lock.json: 2.4.1 (which is actually the latest ^2 release)
    • latest: 4.0.3

while this tool's output shows:

  • run 1: "Failed to check npm registry for plugin 'cordova-plugin-camera'"
  • run 2: "Failed to check npm registry for plugin 'cordova-plugin-camera'"
  • run 3: detects current version as 4.0.3

I normally use Git bash through Hyper Terminal for CLI stuff (I'm a Linux fanboy restricted to Windows here at work), but I get the exact same behaviour when I try through Windows's built-in Command Prompt, so I doubt it's related to my terminal..

any suggestions here?


NOTE: I did look through issue #23, because the logs there include the same message as mine.. but over the past two weeks I've removed and re-installed every single plugin trying different versions to resolve other compatibility issues..

I see my project's plugins/fetch.json file has the following entry for cordova-plugin-camera:

"cordova-plugin-camera": {
  "source": {
    "type": "registry",
    "id": "[email protected]"
  },
  "is_top_level": true,
  "variables": {
    "CAMERA_USAGE_DESCRIPTION": "This app doesn't actually use the camera, but this permission is required for the relevant plugin to operate correctly.",
    "PHOTOLIBRARY_USAGE_DESCRIPTION": "This app requires access to your Photo Library to allow the customisation of PDF header and footer images."
  }
}

could this be an issue with the way I installed the plugins (i.e.: phonegap plugin add ...)?


full verbose outputs of the three test runs included below.

Run 1
agreeff@agreeff2 MINGW64 /d/workspace/software/project-name (develop)
$ cordova-check-plugins --verbose
Running cordova-check-plugins...
Verbose output enabled
cwd is: D:\workspace\software\project-name
Finding installed plugins
Reading installed plugin versions
Checking latest npm registry version for 'cordova-plugin-ble-central' using 'cordova-plugin-ble-central'
Checking latest npm registry version for 'cordova-plugin-file-opener2' using 'cordova-plugin-file-opener2'
Checking latest npm registry version for 'cordova-plugin-whitelist' using '[email protected]'
Checking latest npm registry version for 'ionic-plugin-keyboard' using 'ionic-plugin-keyboard'
Checking latest npm registry version for 'cordova-plugin-statusbar' using '[email protected]'
Checking latest npm registry version for 'cordova-plugin-compat' using '[email protected]'
Checking latest npm registry version for 'cordova-plugin-file' using '[email protected]'
Checking latest npm registry version for 'cordova-plugin-camera' using '[email protected]'
Checking latest npm registry version for 'cordova-plugin-device' using 'cordova-plugin-device'
Checking latest npm registry version for 'cordova-plugin-device-orientation' using 'cordova-plugin-device-orientation'Checking latest npm registry version for 'cordova-plugin-dialogs' using 'cordova-plugin-dialogs'
Checking latest npm registry version for 'cordova-plugin-splashscreen' using '[email protected]'
Checking latest npm registry version for 'cordova.plugins.diagnostic' using '[email protected]'
Checking latest npm registry version for 'cordova-android-support-gradle-release' using 'cordova-android-support-gradle-release'
Checking remote versions... -Retrieved latest npm registry version for 'cordova-plugin-statusbarRetrieved latest npm registry version for 'cordova-plugin-device-orientation
Checking remote versions... |Retrieved latest npm registry version for 'cordova.plugins.diagnostic
Checking remote versions... -Retrieved latest npm registry version for 'cordova-plugin-device
Retrieved latest npm registry version for 'cordova-plugin-whitelist
Checking remote versions... /Failed to check npm registry for plugin 'cordova-plugin-ble-central'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

Checking remote versions... -Failed to check npm registry for plugin 'cordova-plugin-compat'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

Failed to check npm registry for plugin 'cordova-plugin-file'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

Checking remote versions... |Retrieved latest npm registry version for 'cordova-plugin-file-opener2
Checking remote versions... /Failed to check npm registry for plugin 'cordova-plugin-dialogs'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

Checking remote versions... -Failed to check npm registry for plugin 'cordova-plugin-splashscreen'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

Retrieved latest npm registry version for 'cordova-android-support-gradle-release
Failed to check npm registry for plugin 'ionic-plugin-keyboard'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

Checking remote versions... \Failed to check npm registry for plugin 'cordova-plugin-camera'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


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

plugin: cordova-plugin-file-opener2
source: npm://cordova-plugin-file-opener2
installed version: 2.0.19
remote version: 2.0.19

plugin: cordova-plugin-whitelist
source: npm://[email protected]
installed version: 1.3.2
remote version: 1.3.2

plugin: cordova-plugin-statusbar
source: npm://[email protected]
installed version: 2.2.3
remote version: 2.2.3

plugin: cordova-plugin-device
source: npm://cordova-plugin-device
installed version: 2.0.2
remote version: 2.0.2

plugin: cordova-plugin-device-orientation
source: npm://cordova-plugin-device-orientation
installed version: 2.0.1
remote version: 2.0.1

plugin: cordova.plugins.diagnostic
source: npm://[email protected]
installed version: 4.0.10
remote version: 4.0.10

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


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

plugin: cordova-plugin-ble-central
source: npm://cordova-plugin-ble-central
installed version: 1.1.4
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-ble-central':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


plugin: ionic-plugin-keyboard
source: npm://ionic-plugin-keyboard
installed version: 2.2.1
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'ionic-plugin-keyboard':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


plugin: cordova-plugin-compat
source: npm://[email protected]
installed version: 1.2.0
remote version: UNKNOWN - check remote source is valid
source: npm://[email protected]
installed version: 1.2.0
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-compat':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


plugin: cordova-plugin-file
source: npm://[email protected]
installed version: 6.0.1
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-file':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


plugin: cordova-plugin-camera
source: npm://[email protected]
installed version: 4.0.3
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-camera':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


plugin: cordova-plugin-dialogs
source: npm://cordova-plugin-dialogs
installed version: 2.0.1
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-dialogs':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


plugin: cordova-plugin-splashscreen
source: npm://[email protected]
installed version: 5.0.2
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-splashscreen':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘
Run 2
agreeff@agreeff2 MINGW64 /d/workspace/software/project-name (develop)
$ cordova-check-plugins --verbose
Running cordova-check-plugins...
Verbose output enabled
cwd is: D:\workspace\software\project-name
Finding installed plugins
Reading installed plugin versions
Checking latest npm registry version for 'cordova-plugin-ble-central' using 'cordova-plugin-ble-central'
Checking latest npm registry version for 'cordova-plugin-file-opener2' using 'cordova-plugin-file-opener2'
Checking latest npm registry version for 'cordova-plugin-whitelist' using '[email protected]'
Checking latest npm registry version for 'ionic-plugin-keyboard' using 'ionic-plugin-keyboard'
Checking latest npm registry version for 'cordova-plugin-statusbar' using '[email protected]'
Checking latest npm registry version for 'cordova-plugin-compat' using '[email protected]'
Checking latest npm registry version for 'cordova-plugin-file' using '[email protected]'
Checking latest npm registry version for 'cordova-plugin-camera' using '[email protected]'
Checking latest npm registry version for 'cordova-plugin-device' using 'cordova-plugin-device'
Checking latest npm registry version for 'cordova-plugin-device-orientation' using 'cordova-plugin-device-orientation'
Checking latest npm registry version for 'cordova-plugin-dialogs' using 'cordova-plugin-dialogs'
Checking latest npm registry version for 'cordova-plugin-splashscreen' using '[email protected]'
Checking latest npm registry version for 'cordova.plugins.diagnostic' using '[email protected]'
Checking latest npm registry version for 'cordova-android-support-gradle-release' using 'cordova-android-support-gradle-release'
Checking remote versions... |Retrieved latest npm registry version for 'cordova-plugin-whitelist
Checking remote versions... -Failed to check npm registry for plugin 'cordova-plugin-camera'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

Retrieved latest npm registry version for 'cordova-plugin-file
Failed to check npm registry for plugin 'cordova-plugin-compat'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

Checking remote versions... \Failed to check npm registry for plugin 'cordova-plugin-device-orientation'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

Failed to check npm registry for plugin 'cordova-plugin-ble-central'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

Failed to check npm registry for plugin 'cordova-plugin-file-opener2'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

Failed to check npm registry for plugin 'cordova-plugin-dialogs'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

Failed to check npm registry for plugin 'cordova-plugin-device'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

Failed to check npm registry for plugin 'cordova-android-support-gradle-release'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

Failed to check npm registry for plugin 'cordova.plugins.diagnostic'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

Checking remote versions... |Failed to check npm registry for plugin 'cordova-plugin-splashscreen'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

Failed to check npm registry for plugin 'ionic-plugin-keyboard'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

Failed to check npm registry for plugin 'cordova-plugin-statusbar'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


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

plugin: cordova-plugin-whitelist
source: npm://[email protected]
installed version: 1.3.2
remote version: 1.3.2

plugin: cordova-plugin-file
source: npm://[email protected]
installed version: 6.0.1
remote version: 6.0.1


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

plugin: cordova-plugin-ble-central
source: npm://cordova-plugin-ble-central
installed version: 1.1.4
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-ble-central':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


plugin: cordova-plugin-file-opener2
source: npm://cordova-plugin-file-opener2
installed version: 2.0.19
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-file-opener2':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


plugin: ionic-plugin-keyboard
source: npm://ionic-plugin-keyboard
installed version: 2.2.1
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'ionic-plugin-keyboard':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


plugin: cordova-plugin-statusbar
source: npm://[email protected]
installed version: 2.2.3
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-statusbar':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


plugin: cordova-plugin-compat
source: npm://[email protected]
installed version: 1.2.0
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-compat':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


plugin: cordova-plugin-camera
source: npm://[email protected]
installed version: 4.0.3
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-camera':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


plugin: cordova-plugin-device
source: npm://cordova-plugin-device
installed version: 2.0.2
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-device':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


plugin: cordova-plugin-device-orientation
source: npm://cordova-plugin-device-orientation
installed version: 2.0.1
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-device-orientation':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


plugin: cordova-plugin-dialogs
source: npm://cordova-plugin-dialogs
installed version: 2.0.1
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-dialogs':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


plugin: cordova-plugin-splashscreen
source: npm://[email protected]
installed version: 5.0.2
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-splashscreen':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


plugin: cordova.plugins.diagnostic
source: npm://[email protected]
installed version: 4.0.10
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova.plugins.diagnostic':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


plugin: cordova-android-support-gradle-release
source: npm://cordova-android-support-gradle-release
installed version: 2.0.1
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-android-support-gradle-release':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘
Run 3
agreeff@agreeff2 MINGW64 /d/workspace/software/project-name (develop)
$ cordova-check-plugins --verbose
Running cordova-check-plugins...
Verbose output enabled
cwd is: D:\workspace\software\project-name
Finding installed plugins
Reading installed plugin versions
Checking latest npm registry version for 'cordova-plugin-ble-central' using 'cordova-plugin-ble-central'
Checking latest npm registry version for 'cordova-plugin-file-opener2' using 'cordova-plugin-file-opener2'
Checking latest npm registry version for 'cordova-plugin-whitelist' using '[email protected]'
Checking latest npm registry version for 'ionic-plugin-keyboard' using 'ionic-plugin-keyboard'
Checking latest npm registry version for 'cordova-plugin-statusbar' using '[email protected]'
Checking latest npm registry version for 'cordova-plugin-compat' using '[email protected]'
Checking latest npm registry version for 'cordova-plugin-file' using '[email protected]'
Checking latest npm registry version for 'cordova-plugin-camera' using '[email protected]'
Checking latest npm registry version for 'cordova-plugin-device' using 'cordova-plugin-device'
Checking latest npm registry version for 'cordova-plugin-device-orientation' using 'cordova-plugin-device-orientation'
Checking latest npm registry version for 'cordova-plugin-dialogs' using 'cordova-plugin-dialogs'
Checking latest npm registry version for 'cordova-plugin-splashscreen' using '[email protected]'
Checking latest npm registry version for 'cordova.plugins.diagnostic' using '[email protected]'
Checking latest npm registry version for 'cordova-android-support-gradle-release' using 'cordova-android-support-gradle-release'
Checking remote versions... \Failed to check npm registry for plugin 'cordova-plugin-compat'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

Failed to check npm registry for plugin 'cordova-plugin-file-opener2'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

Checking remote versions... /Failed to check npm registry for plugin 'cordova-plugin-whitelist'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

Checking remote versions... -Failed to check npm registry for plugin 'cordova-plugin-device'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

Failed to check npm registry for plugin 'ionic-plugin-keyboard'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

Checking remote versions... -Retrieved latest npm registry version for 'cordova.plugins.diagnostic
Checking remote versions... \Retrieved latest npm registry version for 'cordova-plugin-camera
Retrieved latest npm registry version for 'cordova-plugin-ble-central
Checking remote versions... |Retrieved latest npm registry version for 'cordova-plugin-dialogs
Checking remote versions... -Retrieved latest npm registry version for 'cordova-plugin-statusbar
Checking remote versions... \Failed to check npm registry for plugin 'cordova-plugin-file'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

Checking remote versions... |Failed to check npm registry for plugin 'cordova-plugin-device-orientation'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘

Retrieved latest npm registry version for 'cordova-android-support-gradle-release
Failed to check npm registry for plugin 'cordova-plugin-splashscreen'


┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


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

plugin: cordova-plugin-statusbar
source: npm://[email protected]
installed version: 2.2.3
remote version: 2.2.3

plugin: cordova-plugin-camera
source: npm://[email protected]
installed version: 4.0.3
remote version: 4.0.3

plugin: cordova-plugin-dialogs
source: npm://cordova-plugin-dialogs
installed version: 2.0.1
remote version: 2.0.1

plugin: cordova.plugins.diagnostic
source: npm://[email protected]
installed version: 4.0.10
remote version: 4.0.10

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


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

plugin: cordova-plugin-file-opener2
source: npm://cordova-plugin-file-opener2
installed version: 2.0.19
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-file-opener2':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


plugin: cordova-plugin-whitelist
source: npm://[email protected]
installed version: 1.3.2
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-whitelist':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


plugin: ionic-plugin-keyboard
source: npm://ionic-plugin-keyboard
installed version: 2.2.1
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'ionic-plugin-keyboard':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


plugin: cordova-plugin-compat
source: npm://[email protected]
installed version: 1.2.0
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-compat':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


plugin: cordova-plugin-file
source: npm://[email protected]
installed version: 6.0.1
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-file':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


plugin: cordova-plugin-device
source: npm://cordova-plugin-device
installed version: 2.0.2
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-device':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


plugin: cordova-plugin-device-orientation
source: npm://cordova-plugin-device-orientation
installed version: 2.0.1
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-device-orientation':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘


plugin: cordova-plugin-splashscreen
source: npm://[email protected]
installed version: 5.0.2
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-splashscreen':
┌──────────────────────────────────────────────────────────────┐
│                   npm update check failed                    │
│             Try running with sudo or get access              │
│             to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\agreeff\.config │
└──────────────────────────────────────────────────────────────┘



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

plugin: cordova-plugin-ble-central
source: npm://cordova-plugin-ble-central
installed version: 1.1.4
remote version: 1.2.2

Strange error (Error: Cannot find module 'semver')

After installing the function in a phonegap v5.3.7 environment with:
sudo npm install -g cordova-check-plugins

with the output:

When running:
cordova-check-plugins

I get this (for me) strange error:

Error: Cannot find module 'semver'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:286:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/cordova-check-plugins/index.js:15:14)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:475:10)

Have I missed anything?

errors

this is how package.json looks like

...
        "cordova-plugin-geolocation": "git+https://github.com/apache/cordova-plugin-geolocation.git",
        "cordova-plugin-googlemaps": "git+https://github.com/mapsplugin/cordova-plugin-googlemaps.git#multiple_maps",
        "cordova-plugin-inappbrowser": "^1.7.1",
        "cordova-plugin-network-information": "^1.3.3",
        "cordova-plugin-sim": "^1.3.3",

plugins/fetch.json

....
    "cordova-plugin-geolocation": {
        "source": {
            "type": "registry",
            "id": "cordova-plugin-geolocation@git+https://github.com/apache/cordova-plugin-geolocation.git"
        },
        "is_top_level": true,
        "variables": {}
    },
    "cordova-clipboard": {
        "source": {
            "type": "registry",
            "id": "cordova-clipboard@^1.0.0"
        },
        "is_top_level": true,
        "variables": {}
    },
    "cordova-plugin-googlemaps": {
        "source": {
            "type": "registry",
            "id": "https://github.com/mapsplugin/cordova-plugin-googlemaps#multiple_maps"
        },
        "is_top_level": true,
        "variables": {
            "API_KEY_FOR_ANDROID": "--trimmed--",
            "API_KEY_FOR_IOS": "--trimmed--"
        }
    },
plugin: cordova-plugin-googlemaps
source: npm://https://github.com/mapsplugin/cordova-plugin-googlemaps#multiple_maps
installed version: 2.0.0-beta3-20170804-1618
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-googlemaps': Error: Command failed: npm view "https://github.com/mapsplugin/cordova-plugin-googlemaps#multiple_maps" version
npm ERR! code E404
npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/--trimmed--
npm ERR! 404 
npm ERR! 404  '--trimmed--' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

Does not support GitHub URLs with access tokens

Hello,

Was just trying it out on one of our Cordova projects, but since most of them are private, we use tokens to bypass authentication and allow access. We usually use URLs of this form:
https://[token]:@github.com/[username]/[repo-name]

However, when using this tool I can't check any repositories added through this form. Here's what's displayed when I run the tool

plugin: [plugin name]
source: https://[token]:@github.com/[username]/[repo-name]
installed version: 1.0.3
remote version: UNKNOWN - check remote source is valid
error: Failed to read version from github repo for plugin '[plugin name]': plugin.xml not found - make sure the specified repo contains a Cordova plugin

I checked and the repository does include a plugin.xml file, which leads me to believe that something stopped the repository from being checked out.

Light grey color for usage description

If your terminal uses a white background (which research says is optimal for reading) then light grey is not a particularly helpful color for the usage description. Maybe just not color it at all?

cordova-check-plugins

Wrong cordova path?

Here is the error I get for every Plugin.
I guess it's because I don't have a node_modules folder in this cordova project. Maybe because I have cordova installed globally. Is there a option to use the globally installed cordova? I'm on Fedora 25 btw.

? Update 'cordova.plugins.diagnostic from 3.4.2 to 3.6.5? Yes

Updating 'cordova.plugins.diagnostic'... |
Error removing plugin 'cordova.plugins.diagnostic'

Error: Command failed: node node_modules/cordova/bin/cordova plugin rm cordova.plugins.diagnostic -->nosave
module.js:471
throw err;
^

Error: Cannot find module '/media/data/public_html/testapp/node_modules/cordova/bin/cordova'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:390:7)
at startup (bootstrap_node.js:150:9)
at bootstrap_node.js:505:3

"plugin.xml not found" for GitHub repo that actually has a `plugin.xml`

Using version 1.1.1.

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

plugin: com.unarin.cordova.beacon
source: https://github.com/petermetz/cordova-plugin-ibeacon.git
installed version: 3.4.1 - check remote source is valid
remote version: UNKNOWN
error: Failed to read version from github repo for plugin 'com.unarin.cordova.beacon': plugin.xml not found - make sure the specified repo contains a Cordova plugin

cordova-universal-clipboard

Hey,

First thx for your project, really super useful. I run your cmd today and got the following error even if I don't reference at all the following plugin in my all project. Thought I would let you know in case it would be something weird...


  • Error checking plugin version *

plugin: cordova-universal-clipboard
source: https://github.com/Visigo/CordovaClipboard
installed version: UNKNOWN - check plugins/fetch.json for orphaned entries
remote version: 0.1.0

Best regards

Does not update

Bug report

Current behavior:

When I run the command cordova-check-plugins --update=auto twice, it does not update.
I can run it 10 times and still it says it has something to be updated, normally the last plugin in the list.

Expected behavior:

It should update only with one try, one command

Steps to reproduce:

Run it twice, one time after another: cordova-check-plugins --update=auto

Environment information

  • Cordova CLI version
  • Cordova platform version
    • cordova platform ls
Installed platforms:
  android 6.4.0
  browser 6.0.0
Available platforms: 
  electron ^1.0.0
  ios ^5.0.0
  osx ^5.0.0
  windows ^7.0.0
  • Plugins & versions installed in project (including this plugin)
    • cordova plugin ls
cordova-pdf-generator 2.1.1 "PDFGenerator"
cordova-plugin-cache-clear 1.3.7 "Cordova Cache Clear"
cordova-plugin-camera 4.0.3 "Camera"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-email-composer 0.8.15 "EmailComposer"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-geolocation 2.4.3 "Geolocation"
cordova-plugin-inappbrowser 3.2.0 "InAppBrowser"
cordova-plugin-mobile-ocr 3.1.1 "Textocr"
cordova-plugin-network-information 2.0.2 "Network Information"
cordova-plugin-screen-orientation 3.0.2 "Screen Orientation"
cordova-plugin-simple-image-resizer 0.1.1 "Image Resizer"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-whitelist 1.3.4 "Whitelist"
es6-promise-plugin 4.2.2 "Promise"
info.protonet.imageresizer 0.1.1 "Image Resizer"
  • Dev machine OS and version, e.g.

Ubuntu 18.04.4 LTS

Runtime issue

  • Device details
    • Samsung A5
  • OS details
    • Android 9.0_

Android build issue:

  • Node JS version
    • node -v
  • Gradle version
    • ls platforms/android/.gradle: 4.1 4.4 5.4.1 buildOutputCleanup vcs-1
  • Target Android SDK version
    • android:targetSdkVersion in AndroidManifest.xml
  • Android SDK details
    • sdkmanager --list | sed -e '/Available Packages/q'

iOS build issue:

  • Node JS version
    • node -v
      v12.18.0
  • XCode version

Related code:

insert any relevant code here such as plugin API calls / input parameters

Console output

console output

$ cordova-check-plugins --update=auto


  • Up-to-date plugins *

plugin: cordova-plugin-compat
source: npm://[email protected]
installed version: 1.2.0
remote version: 1.2.0

plugin: cordova-plugin-geolocation
source: npm://cordova-plugin-geolocation@^2.4.3
installed version: 2.4.3
remote version: 2.4.3

plugin: cordova-plugin-email-composer
source: npm://cordova-plugin-email-composer@^0.8.15
installed version: 0.8.15
remote version: 0.8.15

plugin: cordova-plugin-simple-image-resizer
source: https://github.com/protonet/cordova-plugin-image-resizer
installed version: 0.1.1
remote version: 0.1.1

plugin: es6-promise-plugin
source: npm://es6-promise-plugin@^4.1.0
installed version: 4.2.2
remote version: 4.2.2

plugin: cordova-plugin-camera
source: npm://[email protected]
installed version: 4.0.3
remote version: 4.0.3

plugin: info.protonet.imageresizer
source: npm://info.protonet.imageresizer
installed version: 0.1.1
remote version: 0.1.1

plugin: cordova-plugin-file-transfer
source: npm://[email protected]
installed version: 1.7.1
remote version: 1.7.1

plugin: cordova-plugin-file
source: npm://[email protected]
installed version: 6.0.1
remote version: 6.0.1

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

plugin: cordova-plugin-screen-orientation
source: npm://cordova-plugin-screen-orientation
installed version: 3.0.2
remote version: 3.0.2

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

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

plugin: cordova-plugin-network-information
source: npm://cordova-plugin-network-information@^2.0.1
installed version: 2.0.2
remote version: 2.0.2

plugin: cordova-plugin-inappbrowser
source: npm://cordova-plugin-inappbrowser@^3.0.0
installed version: 3.2.0
remote version: 3.2.0

plugin: cordova-plugin-mobile-ocr
source: npm://cordova-plugin-mobile-ocr
installed version: 3.1.1
remote version: 3.1.1

plugin: cordova-pdf-generator
source: npm://[email protected]
installed version: 2.1.1
remote version: 2.1.1


  • Plugin update available *

plugin: cordova-plugin-cache-clear
source: npm://[email protected]
installed version: 1.3.7
remote version: 1.3.8

Updated 'cordova-plugin-cache-clear' from 1.3.7 to 1.3.8

Automatically updated all outdated plugins
joao@toshiba:~/form-for-parking-violation$ cordova-check-plugins --update=auto


  • Up-to-date plugins *

plugin: cordova-plugin-compat
source: npm://[email protected]
installed version: 1.2.0
remote version: 1.2.0

plugin: cordova-plugin-geolocation
source: npm://cordova-plugin-geolocation@^2.4.3
installed version: 2.4.3
remote version: 2.4.3

plugin: cordova-plugin-email-composer
source: npm://cordova-plugin-email-composer@^0.8.15
installed version: 0.8.15
remote version: 0.8.15

plugin: cordova-plugin-simple-image-resizer
source: https://github.com/protonet/cordova-plugin-image-resizer
installed version: 0.1.1
remote version: 0.1.1

plugin: es6-promise-plugin
source: npm://es6-promise-plugin@^4.1.0
installed version: 4.2.2
remote version: 4.2.2

plugin: cordova-plugin-camera
source: npm://[email protected]
installed version: 4.0.3
remote version: 4.0.3

plugin: info.protonet.imageresizer
source: npm://info.protonet.imageresizer
installed version: 0.1.1
remote version: 0.1.1

plugin: cordova-plugin-file-transfer
source: npm://[email protected]
installed version: 1.7.1
remote version: 1.7.1

plugin: cordova-plugin-file
source: npm://[email protected]
installed version: 6.0.1
remote version: 6.0.1

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

plugin: cordova-plugin-screen-orientation
source: npm://cordova-plugin-screen-orientation
installed version: 3.0.2
remote version: 3.0.2

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

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

plugin: cordova-plugin-network-information
source: npm://cordova-plugin-network-information@^2.0.1
installed version: 2.0.2
remote version: 2.0.2

plugin: cordova-plugin-inappbrowser
source: npm://cordova-plugin-inappbrowser@^3.0.0
installed version: 3.2.0
remote version: 3.2.0

plugin: cordova-plugin-mobile-ocr
source: npm://cordova-plugin-mobile-ocr
installed version: 3.1.1
remote version: 3.1.1

plugin: cordova-pdf-generator
source: npm://[email protected]
installed version: 2.1.1
remote version: 2.1.1


  • Plugin update available *

plugin: cordova-plugin-cache-clear
source: npm://[email protected]
installed version: 1.3.7
remote version: 1.3.8

Updated 'cordova-plugin-cache-clear' from 1.3.7 to 1.3.8

Automatically updated all outdated plugins




Other information:

Support for plugins with -dev on the version

Hi,
Previously, I created a bash shell script to update cordova plugins,
but cordova-check-plugins provides a better implementation.
It works well with plugins versions N.N.N,
but it would be very helpful if also supports versions N.N.N-dev.
For these plugins it gives an error.

Here are 2 examples where this such problem:
cordova-plugin-network-information
phonegap-plugin-mobile-accessibility

Cheers
Alexandre

installing plugin does not works

I'm running cordova-check-plugins --unconstrain-versions --mode=auto --save
It says that plugins are installed:

Updating all plugins: ionic-plugin-keyboard, cordova-plugin-console


Updating 'cordova-plugin-console'... /
Removed plugin 'cordova-plugin-console'
Updating 'cordova-plugin-console'... \
Re-added plugin 'cordova-plugin-console'

Updated 'cordova-plugin-console' from 1.0.2 to 1.0.3


Updating 'ionic-plugin-keyboard'... |
Removed plugin 'ionic-plugin-keyboard'
Updating 'ionic-plugin-keyboard'... \
Re-added plugin 'ionic-plugin-keyboard'

Updated 'ionic-plugin-keyboard' from 2.2.0 to 2.2.1

Automatically updated all outdated plugins

But when i go to check both:

  • a) the plugin directory
  • b) config.xml

the plugins are still at the old version.

Enhancement to detect plugins still using UIWebView

Is there any way this plugin could have a switch to see if a plugin is dependent on UIWebView? There are quite a few apps and developers out there that are scrambling to correctly convert their UIWebView apps over to WKWebView and its damn near impossible to find out which plugins are still using it or referencing which is causing the app to be rejected by the Apple App store.

My app has been rejected 4 times already and I can't figure out what the culprit is....I am also at the point that if I remove any more plugins the core of my app won't work anymore...which means a complete rewrite and months of time to do - both of which are simply not feasible right now.

I could see the feature also being adapted for the future to detect other deprecated components and plugins that are using or dependent on them. It would be very useful to contact plugin owners to update their plugins or fork them for repair or worst case recode not using that plugin. Otherwise, some of this stuff is like finding a needle in a haystack of needles.

Please update dependencies

Bug report

The dependencies of this package are outdated, when I run npm audit a lot of high priority vulnerabilities pop up

───────────────┬──────────────────────────────────────────────────────────────┐
│ High          │ Insufficient Entropy                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ cryptiles                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=4.1.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ cordova-check-plugins [dev]                                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ cordova-check-plugins > octonode > request > hawk >          │
│               │ cryptiles                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://npmjs.com/advisories/1464                            │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High          │ Insufficient Entropy                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ cryptiles                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=4.1.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ cordova-check-plugins [dev]                                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ cordova-check-plugins > plugman > cordova-lib > request >    │
│               │ hawk > cryptiles                                             │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://npmjs.com/advisories/1464                            │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High          │ Insufficient Entropy                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ cryptiles                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=4.1.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ cordova-check-plugins [dev]                                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ cordova-check-plugins > plugman > cordova-lib > npm >        │
│               │ node-gyp > request > hawk > cryptiles                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://npmjs.com/advisories/1464                            │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High          │ Insufficient Entropy                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ cryptiles                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=4.1.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ cordova-check-plugins [dev]                                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ cordova-check-plugins > plugman > cordova-lib > npm >        │
│               │ npm-registry-client > request > hawk > cryptiles             │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://npmjs.com/advisories/1464                            │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High          │ Insufficient Entropy                                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ cryptiles                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=4.1.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ cordova-check-plugins [dev]                                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ cordova-check-plugins > plugman > cordova-lib > npm >        │
│               │ request > hawk > cryptiles                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://npmjs.com/advisories/1464                            │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High          │ Prototype Pollution Protection Bypass                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ qs                                                           │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=6.0.4 <6.1.0 || >=6.1.2 <6.2.0 || >=6.2.3 <6.3.0 ||        │
│               │ >=6.3.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ cordova-check-plugins [dev]                                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ cordova-check-plugins > octonode > request > qs              │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://npmjs.com/advisories/1469                            │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High          │ Prototype Pollution Protection Bypass                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ qs                                                           │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=6.0.4 <6.1.0 || >=6.1.2 <6.2.0 || >=6.2.3 <6.3.0 ||        │
│               │ >=6.3.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ cordova-check-plugins [dev]                                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ cordova-check-plugins > plugman > cordova-lib > npm >        │
│               │ node-gyp > request > qs                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://npmjs.com/advisories/1469                            │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High          │ Prototype Pollution Protection Bypass                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ qs                                                           │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=6.0.4 <6.1.0 || >=6.1.2 <6.2.0 || >=6.2.3 <6.3.0 ||        │
│               │ >=6.3.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ cordova-check-plugins [dev]                                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ cordova-check-plugins > plugman > cordova-lib > npm >        │
│               │ npm-registry-client > request > qs                           │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://npmjs.com/advisories/1469                            │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High          │ Prototype Pollution Protection Bypass                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ qs                                                           │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=6.0.4 <6.1.0 || >=6.1.2 <6.2.0 || >=6.2.3 <6.3.0 ||        │
│               │ >=6.3.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ cordova-check-plugins [dev]                                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ cordova-check-plugins > plugman > cordova-lib > npm >        │
│               │ request > qs                                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://npmjs.com/advisories/1469                            │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High          │ Prototype Pollution Protection Bypass                        │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ qs                                                           │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=6.0.4 <6.1.0 || >=6.1.2 <6.2.0 || >=6.2.3 <6.3.0 ||        │
│               │ >=6.3.2                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ cordova-check-plugins [dev]                                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ cordova-check-plugins > plugman > cordova-lib > request > qs │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://npmjs.com/advisories/1469                            │

TypeError: xml2js.Builder is not a constructor

TypeError: xml2js.Builder is not a constructor
at Object.local.writeConfigXmlFromJs (/Users/xxx/.nvm/versions/node/v13.1.0/lib/node_modules/cordova-check-plugins/lib/local.js:81:23)

This seems a very simple bug.
var xml2js = require('xml2js').parseString;
and then,
var builder = new xml2js.Builder();

It seems incorrect.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.