Closed ZaLiTHkA closed 5 years ago
I am having the same problems with the 4.0.4 version, and it is a different plugin, it fails on, when retrying
´´´ Checking remote versions... |Retrieved latest github version for 'cordova-plugin-crop Checking remote versions... |Retrieved latest npm registry version for 'cordova-plugin-actionsheet Checking remote versions... /Retrieved latest npm registry version for 'cordova-plugin-whitelist Checking remote versions... -Retrieved latest npm registry version for 'cordova-custom-config Retrieved latest npm registry version for 'com.telerik.plugins.nativepagetransitions Checking remote versions... |Retrieved latest npm registry version for 'cordova-plugin-statusbar Checking remote versions... -Retrieved latest npm registry version for 'cordova-plugin-globalization Checking remote versions... |Retrieved latest npm registry version for 'cordova-plugin-camera Retrieved latest npm registry version for 'cordova-support-android-plugin Checking remote versions... /Retrieved latest npm registry version for 'cordova-plugin-network-information Checking remote versions... -Retrieved latest npm registry version for 'cordova-plugin-badge Retrieved latest npm registry version for 'cordova-plugin-datepicker Checking remote versions... \Retrieved latest npm registry version for 'cordova-plugin-local-notification Retrieved latest npm registry version for 'cordova-plugin-device Failed to check npm registry for plugin 'cordova-plugin-google-analytics'
┌───────────────────────────────────────────────────────────┐
│ 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\
Checking remote versions... |Failed to check npm registry for plugin 'cordova-plugin-ionic-webview'
┌───────────────────────────────────────────────────────────┐
│ 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\
Failed to check npm registry for plugin 'cordova-plugin-splashscreen'
So when it fails for one, it fails for the rest, but as it randomly fails on any plugin, it is unuseable atm
This looks to be an issue with npm, which this module uses to check for available remote versions - npm update check failed
being the symptomatic statement.
You can see various related issues related to this error opened against the npm module such as https://github.com/npm/npm/issues/17946
This may be due to network connection issues, but isn't directly caused by this module.
Thanks for the info @dpa99c, I do understand the issue is coming from an npm
specific command, but I don't have this issue with any of my other Node based projects (which is the majority of my workflow), which is why I posted this issue here.
I have checked the permissions in my user profile .config
folder and they're all still assigned to my user, so I doubt that's an issue here. Based on your understanding of what this package does internally, is there anything else you can think of for me to try?
Note: this isn't a mission critical step for me, but it would be nice to have an easier way to update Cordova plugins. :)
[edit] For what it's worth, I just tried renaming my .config
folder so it gets recreated from scratch, the permissions on the new files are identical to the old ones and I still have the same issue. We don't have any weird network configs here at work (other than perhaps a corporate firewall), but just to rule out the network as an issue here, I'll try this from my personal machine when I get home this evening and see what happens.
The same happens to me, very reproducibly but every time with different plugin failing.
Install:
C:\xampp\htdocs\project>npm install -g cordova-check-plugins
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated hoek@0.9.1: The major version is no longer supported. Please update to 4.x or newer
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated node-uuid@1.4.7: Use uuid module instead
C:\Users\User\AppData\Roaming\npm\cordova-check-plugins -> C:\Users\User\AppData\Roaming\npm\node_modules\cordova-check-plugins\index.js
npm WARN acorn-dynamic-import@4.0.0 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
+ cordova-check-plugins@4.0.4
added 1173 packages from 995 contributors in 101.875s
First run:
C:\xampp\htdocs\project>cordova-check-plugins --update=auto --unconstrain-versions --force --save
Checking remote versions... /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\User\.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\User\.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\User\.config │
└───────────────────────────────────────────────────────────┘
Checking remote versions... -Failed to check npm registry for plugin 'cordova-plugin-actionsheet'
┌───────────────────────────────────────────────────────────┐
│ 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\User\.config │
└───────────────────────────────────────────────────────────┘
Checking remote versions... |Failed to check npm registry for plugin 'cordova-plugin-telerik-imagepicker'
┌───────────────────────────────────────────────────────────┐
│ 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\User\.config │
└───────────────────────────────────────────────────────────┘
**********************
* Up-to-date plugins *
**********************
plugin: cordova-plugin-dialogs
source: npm://cordova-plugin-dialogs@^2.0.1
installed version: 2.0.1
remote version: 2.0.1
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-console
source: npm://cordova-plugin-console@1.1.0
installed version: 1.1.0
remote version: 1.1.0
plugin: cordova-plugin-request-location-accuracy
source: npm://cordova-plugin-request-location-accuracy@2.2.3
installed version: 2.2.3
remote version: 2.2.3
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-network-information
source: npm://cordova-plugin-network-information@^2.0.1
installed version: 2.0.1
remote version: 2.0.1
plugin: cordova-plugin-geolocation
source: npm://cordova-plugin-geolocation@4.0.1
installed version: 4.0.1
remote version: 4.0.1
plugin: cordova-plugin-splashscreen
source: npm://cordova-plugin-splashscreen@5.0.2
installed version: 5.0.2
remote version: 5.0.2
plugin: com-sarriaroman-photoviewer
source: npm://com-sarriaroman-photoviewer@^1.1.18
installed version: 1.1.18
remote version: 1.1.18
plugin: cordova-plugin-file
source: npm://cordova-plugin-file@6.0.1
installed version: 6.0.1
remote version: 6.0.1
plugin: uk.co.workingedge.phonegap.plugin.launchnavigator
source: npm://uk.co.workingedge.phonegap.plugin.launchnavigator@4.2.2
installed version: 4.2.2
remote version: 4.2.2
plugin: cordova.plugins.diagnostic
source: npm://cordova.plugins.diagnostic@4.0.10
installed version: 4.0.10
remote version: 4.0.10
plugin: cordova-plugin-advanced-http
source: npm://cordova-plugin-advanced-http
installed version: 2.0.2
remote version: 2.0.2
plugin: cordova-sqlite-ext
source: npm://cordova-sqlite-ext@2.3.0
installed version: 2.3.0
remote version: 2.3.0
*********************************
* Error checking plugin version *
*********************************
plugin: ionic-plugin-keyboard
source: npm://ionic-plugin-keyboard@~2.2.1
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\User\.config │
└───────────────────────────────────────────────────────────┘
plugin: cordova-plugin-actionsheet
source: npm://cordova-plugin-actionsheet@2
installed version: 2.3.3
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-actionsheet':
┌───────────────────────────────────────────────────────────┐
│ 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\User\.config │
└───────────────────────────────────────────────────────────┘
plugin: cordova-plugin-device
source: npm://cordova-plugin-device@2.0.2
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\User\.config │
└───────────────────────────────────────────────────────────┘
plugin: cordova-plugin-statusbar
source: npm://cordova-plugin-statusbar@2.4.2
installed version: 2.4.2
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\User\.config │
└───────────────────────────────────────────────────────────┘
plugin: cordova-plugin-telerik-imagepicker
source: npm://cordova-plugin-telerik-imagepicker@^2.2.2
installed version: 2.2.2
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-telerik-imagepicker':
┌───────────────────────────────────────────────────────────┐
│ 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\User\.config │
└───────────────────────────────────────────────────────────┘
Second try yields a different set of errors:
C:\xampp\htdocs\project>cordova-check-plugins --update=auto --unconstrain-versions --force --save
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\User\.config │
└───────────────────────────────────────────────────────────┘
Checking remote versions... |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\User\.config │
└───────────────────────────────────────────────────────────┘
Failed to check npm registry for plugin 'cordova-plugin-actionsheet'
┌───────────────────────────────────────────────────────────┐
│ 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\User\.config │
└───────────────────────────────────────────────────────────┘
Checking remote versions... -Failed to check npm registry for plugin 'com-sarriaroman-photoviewer'
┌───────────────────────────────────────────────────────────┐
│ 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\User\.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\User\.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\User\.config │
└───────────────────────────────────────────────────────────┘
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\User\.config │
└───────────────────────────────────────────────────────────┘
**********************
* Up-to-date plugins *
**********************
plugin: cordova-plugin-dialogs
source: npm://cordova-plugin-dialogs@^2.0.1
installed version: 2.0.1
remote version: 2.0.1
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-request-location-accuracy
source: npm://cordova-plugin-request-location-accuracy@2.2.3
installed version: 2.2.3
remote version: 2.2.3
plugin: cordova-plugin-statusbar
source: npm://cordova-plugin-statusbar@2.4.2
installed version: 2.4.2
remote version: 2.4.2
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-network-information
source: npm://cordova-plugin-network-information@^2.0.1
installed version: 2.0.1
remote version: 2.0.1
plugin: cordova-plugin-geolocation
source: npm://cordova-plugin-geolocation@4.0.1
installed version: 4.0.1
remote version: 4.0.1
plugin: cordova-plugin-telerik-imagepicker
source: npm://cordova-plugin-telerik-imagepicker@^2.2.2
installed version: 2.2.2
remote version: 2.2.2
plugin: uk.co.workingedge.phonegap.plugin.launchnavigator
source: npm://uk.co.workingedge.phonegap.plugin.launchnavigator@4.2.2
installed version: 4.2.2
remote version: 4.2.2
plugin: cordova.plugins.diagnostic
source: npm://cordova.plugins.diagnostic@4.0.10
installed version: 4.0.10
remote version: 4.0.10
plugin: cordova-plugin-advanced-http
source: npm://cordova-plugin-advanced-http
installed version: 2.0.2
remote version: 2.0.2
plugin: cordova-sqlite-ext
source: npm://cordova-sqlite-ext@2.3.0
installed version: 2.3.0
remote version: 2.3.0
*********************************
* Error checking plugin version *
*********************************
plugin: ionic-plugin-keyboard
source: npm://ionic-plugin-keyboard@~2.2.1
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\User\.config │
└───────────────────────────────────────────────────────────┘
plugin: cordova-plugin-actionsheet
source: npm://cordova-plugin-actionsheet@2
installed version: 2.3.3
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-actionsheet':
┌───────────────────────────────────────────────────────────┐
│ 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\User\.config │
└───────────────────────────────────────────────────────────┘
plugin: cordova-plugin-compat
source: npm://cordova-plugin-compat@^1.2.0
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\User\.config │
└───────────────────────────────────────────────────────────┘
plugin: cordova-plugin-device
source: npm://cordova-plugin-device@2.0.2
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\User\.config │
└───────────────────────────────────────────────────────────┘
plugin: cordova-plugin-splashscreen
source: npm://cordova-plugin-splashscreen@5.0.2
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\User\.config │
└───────────────────────────────────────────────────────────┘
plugin: com-sarriaroman-photoviewer
source: npm://com-sarriaroman-photoviewer@^1.1.18
installed version: 1.1.18
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'com-sarriaroman-photoviewer':
┌───────────────────────────────────────────────────────────┐
│ 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\User\.config │
└───────────────────────────────────────────────────────────┘
plugin: cordova-plugin-file
source: npm://cordova-plugin-file@6.0.1
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\User\.config │
└───────────────────────────────────────────────────────────┘
When I execute the plugins commands manually, everything works fine, everytime:
C:\xampp\htdocs\project>npm view cordova-plugin-splashscreen version
5.0.2
In my desperation, I injected additional logging code to remote.js
. See the result here:
Not sure what is happening here. I've done a dirty "workaround" by changing remote.js
from
exec(command, {cwd: opts.cwd}, function(err, stdout, stderr) {
try{
err = err || stderr;
if(err){
to
exec(command, {cwd: opts.cwd}, function(err, stdout, stderr) {
try{
err = err || stderr;
if(err && !stdout){
This error seems specific to a Windows build environment - please try the solution suggested by this SO answer
@dpa99c it doesn't help on my MacOS@latest
and if I open Link, then I have a data:
Any idea?
@WuglyakBolgoink This looks like it's a different error from those listed above.
Please run cordova-check-plugins
with the --verbose
option to get more detailed console output and post the relevant log extract.
Hallo @dpa99c
$ cordova-check-plugins --verbose
Running cordova-check-plugins...
Verbose output enabled
cwd is: /Users/myuser/apps/mobile_app/
Finding installed plugins
Reading installed plugin versions
...
...
...
Checking latest npm registry version for 'cordova-plugin-device' using 'cordova-plugin-device@2.0.1'
Checking latest npm registry version for 'cordova-plugin-android-fingerprint-auth' using 'cordova-plugin-android-fingerprint-auth@1.4.3'
....
Checking latest npm registry version for 'cordova-plugin-iroot' using 'cordova-plugin-iroot@latest'
Checking remote versions... \Retrieved latest github version for 'com.shazron.cordova.plugin.keychainutil
Checking remote versions... -Failed to check npm registry for plugin 'cordova-plugin-document-viewer'
npm http request GET https://registry.npmjs.org/cordova-plugin-document-viewer
npm http 200 https://registry.npmjs.org/cordova-plugin-document-viewer
Checking remote versions... /Failed to check npm registry for plugin 'cordova-plugin-file-opener2'
npm http request GET https://registry.npmjs.org/cordova-plugin-file-opener2
npm http 200 https://registry.npmjs.org/cordova-plugin-file-opener2
Checking remote versions... -Failed to check npm registry for plugin 'cordova-android-support-gradle-release'
....
....same for all installed plugins
....
*********************************
* Error checking plugin version *
*********************************
plugin: cordova-plugin-document-viewer
source: npm://cordova-plugin-document-viewer@0.9.10
installed version: 0.9.10
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-document-viewer': npm http request GET https://registry.npmjs.org/cordova-plugin-document-viewer
npm http 200 https://registry.npmjs.org/cordova-plugin-document-viewer
...
... same for all installed plugins
...
This tool runs the command npm view [packageName] version
to determine current latest version available on npm, for example npm view cordova-plugin-document-viewer version
.
If seems that in your case, either npm is returning a non-zero error code or stderr
is non-null, which is causing the tool to invoke its error handler
Try to run npm view cordova-plugin-document-viewer version
manually and see what it returns.
@dpa99c
...
...
npm verb headers server: 'cloudflare',
npm verb headers 'content-encoding': 'gzip' }
0.8.0
npm verb exit [ 0, true ]
npm timing npm Completed in 327ms
npm info ok
als - ok... :) outside mobile folder is same status.
or should I remove all plugins and install again?
@WuglyakBolgoink you can try reinstalling plugins, but I'm not sure it will help: seems like this tool is not getting the result back from npm that it's expecting. if error code is not non-zero, then stderr must be non-null.
I got windows 10 64-bit, and just installed this version 4.0.4
and I got the same issues, I tried to delete .config folder, that helped for the first time, then it just became a random message, I do try like many times, some of the times I get the errors, other times no errors:
cordova-check-plugins --update=auto
**********************
* Up-to-date plugins *
**********************
plugin: cordova-plugin-device
source: npm://cordova-plugin-device@^2.0.2
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.0.0
remote version: 3.0.0
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-whitelist
source: npm://cordova-plugin-whitelist@^1.3.3
installed version: 1.3.3
remote version: 1.3.3
plugin: cordova-plugin-statusbar
source: npm://cordova-plugin-statusbar@^2.4.2
installed version: 2.4.2
remote version: 2.4.2
plugin: cordova-plugin-ionic-keyboard
source: npm://cordova-plugin-ionic-keyboard@^2.1.3
installed version: 2.1.3
remote version: 2.1.3
plugin: cordova-plugin-file
source: npm://cordova-plugin-file@6.0.1
installed version: 6.0.1
remote version: 6.0.1
plugin: cordova-plugin-x-toast
source: npm://cordova-plugin-x-toast
installed version: 2.7.2
remote version: 2.7.2
plugin: cordova-plugin-app-version
source: npm://cordova-plugin-app-version
installed version: 0.1.9
remote version: 0.1.9
plugin: cordova-plugin-ionic-webview
source: npm://cordova-plugin-ionic-webview@3.1.0
installed version: 3.1.0
remote version: 3.1.0
cordova-check-plugins --update=auto
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\almothafar\.config │
└─────────────────────────────────────────────────────────────────┘
Failed to check npm registry for plugin 'cordova-plugin-ionic-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\almothafar\.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\almothafar\.config │
└─────────────────────────────────────────────────────────────────┘
**********************
* Up-to-date plugins *
**********************
plugin: cordova-plugin-device
source: npm://cordova-plugin-device@^2.0.2
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.0.0
remote version: 3.0.0
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-statusbar
source: npm://cordova-plugin-statusbar@^2.4.2
installed version: 2.4.2
remote version: 2.4.2
plugin: cordova-plugin-x-toast
source: npm://cordova-plugin-x-toast
installed version: 2.7.2
remote version: 2.7.2
plugin: cordova-plugin-app-version
source: npm://cordova-plugin-app-version
installed version: 0.1.9
remote version: 0.1.9
plugin: cordova-plugin-ionic-webview
source: npm://cordova-plugin-ionic-webview@3.1.0
installed version: 3.1.0
remote version: 3.1.0
*********************************
* Error checking plugin version *
*********************************
plugin: cordova-plugin-splashscreen
source: npm://cordova-plugin-splashscreen@^5.0.2
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\almothafar\.config │
└─────────────────────────────────────────────────────────────────┘
plugin: cordova-plugin-ionic-keyboard
source: npm://cordova-plugin-ionic-keyboard@^2.1.3
installed version: 2.1.3
remote version: UNKNOWN - check remote source is valid
error: Failed to check npm registry for plugin 'cordova-plugin-ionic-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\almothafar\.config │
└─────────────────────────────────────────────────────────────────┘
plugin: cordova-plugin-file
source: npm://cordova-plugin-file@6.0.1
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\almothafar\.config │
└─────────────────────────────────────────────────────────────────┘
I'm having the same issue. Cannot use the package because of it.
Just downgrade to Version 3.1.1
@ThorvaldAagaard that's not really a solution.
@mkyukov The functionality is almost the same, so until now I have used the 3.1.1 version with out any problems or missing features
@d89 I've been able to reproduce similar results on Windows 10 x64: npm version command returns with error value err
defined but stdout
is also defined and contains the actual version number, indicating the command is successful. Seems a bizarre result, but nevertheless is reproducible.
So I think the best course of action is your "dirty hack", since if stdout
is not defined and err
is defined we are in trouble, whereas if stdout
is defined then it can contain only one thing and that's our version number.
I've published that commit to npm in v4.0.5 so let me know if that resolves the issue or if it continues to occur.
Installed v4.0.5, and it worked fine :-)
I noticed the following, when installing:
D:>npm install cordova-check-plugins -g npm WARN deprecated node-uuid@1.4.8: Use uuid module instead npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated node-uuid@1.4.7: Use uuid module instead npm WARN acorn-dynamic-import@4.0.0 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
- cordova-check-plugins@4.0.5 added 612 packages from 522 contributors, removed 232 packages, updated 97 packages and moved 24 packages in 29.845s
Should I care?
@d89 I've been able to reproduce similar results on Windows 10 x64: npm version command returns with error value
err
defined butstdout
is also defined and contains the actual version number, indicating the command is successful. Seems a bizarre result, but nevertheless is reproducible.So I think the best course of action is your "dirty hack", since if
stdout
is not defined anderr
is defined we are in trouble, whereas ifstdout
is defined then it can contain only one thing and that's our version number.
4.0.5 works fine, thank you for considering my workaround 👍
Installed v4.0.5, and it worked fine :-)
I noticed the following, when installing:
D:>npm install cordova-check-plugins -g npm WARN deprecated node-uuid@1.4.8: Use uuid module instead npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated node-uuid@1.4.7: Use uuid module instead npm WARN acorn-dynamic-import@4.0.0 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
- cordova-check-plugins@4.0.5 added 612 packages from 522 contributors, removed 232 packages, updated 97 packages and moved 24 packages in 29.845s
Should I care?
@ThorvaldAagaard in short: no 😀
As I explained in #36:
This module is not intended to be deployed to a remote server where these vulnerabilities can be exploited, it is intended as a CLI tool to run on your local development machine which only you have access to, hence they are irrelevant.
Closing this now as I have also confirmed it has resolved the issue I was able to locally reproduce. However if anyone is still encountering such issues, let me know.
Can confirm that this works, thanks for your quick responses :) !
apologies for not staying involved in this one, had way too much on my plate lately.. I also completely missed the conversation and subsequent fix 2 weeks back.
anyways, as the one who opened the issue, I just wanted to say thanks for the fix.. I've tried 4.0.5
now on my system and it's working perfectly. 🖖
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\Vera.config
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..8.11.4
6.4.1
8.1.2 (cordova-lib@8.1.1)
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)4.0.3
while this tool's output shows:
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 forcordova-plugin-camera
: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
```bash 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 'cordova-plugin-whitelist@1.3.2' Checking latest npm registry version for 'ionic-plugin-keyboard' using 'ionic-plugin-keyboard' Checking latest npm registry version for 'cordova-plugin-statusbar' using 'cordova-plugin-statusbar@2.2.3' Checking latest npm registry version for 'cordova-plugin-compat' using 'cordova-plugin-compat@1.2' Checking latest npm registry version for 'cordova-plugin-file' using 'cordova-plugin-file@6.0.1' Checking latest npm registry version for 'cordova-plugin-camera' using 'cordova-plugin-camera@4.0.3' 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 'cordova-plugin-splashscreen@5.0.2' Checking latest npm registry version for 'cordova.plugins.diagnostic' using 'cordova.plugins.diagnostic@4.0.10' 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://cordova-plugin-whitelist@1.3.2 installed version: 1.3.2 remote version: 1.3.2 plugin: cordova-plugin-statusbar source: npm://cordova-plugin-statusbar@2.2.3 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://cordova.plugins.diagnostic@4.0.10 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://cordova-plugin-compat@1.2 installed version: 1.2.0 remote version: UNKNOWN - check remote source is valid source: npm://cordova-plugin-compat@1.2 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://cordova-plugin-file@6.0.1 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://cordova-plugin-camera@4.0.3 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://cordova-plugin-splashscreen@5.0.2 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 'cordova-plugin-whitelist@1.3.2' Checking latest npm registry version for 'ionic-plugin-keyboard' using 'ionic-plugin-keyboard' Checking latest npm registry version for 'cordova-plugin-statusbar' using 'cordova-plugin-statusbar@2.2.3' Checking latest npm registry version for 'cordova-plugin-compat' using 'cordova-plugin-compat@1.2' Checking latest npm registry version for 'cordova-plugin-file' using 'cordova-plugin-file@6.0.1' Checking latest npm registry version for 'cordova-plugin-camera' using 'cordova-plugin-camera@4.0.3' 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 'cordova-plugin-splashscreen@5.0.2' Checking latest npm registry version for 'cordova.plugins.diagnostic' using 'cordova.plugins.diagnostic@4.0.10' 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://cordova-plugin-whitelist@1.3.2 installed version: 1.3.2 remote version: 1.3.2 plugin: cordova-plugin-file source: npm://cordova-plugin-file@6.0.1 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://cordova-plugin-statusbar@2.2.3 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://cordova-plugin-compat@1.2 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://cordova-plugin-camera@4.0.3 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://cordova-plugin-splashscreen@5.0.2 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://cordova.plugins.diagnostic@4.0.10 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 'cordova-plugin-whitelist@1.3.2' Checking latest npm registry version for 'ionic-plugin-keyboard' using 'ionic-plugin-keyboard' Checking latest npm registry version for 'cordova-plugin-statusbar' using 'cordova-plugin-statusbar@2.2.3' Checking latest npm registry version for 'cordova-plugin-compat' using 'cordova-plugin-compat@1.2' Checking latest npm registry version for 'cordova-plugin-file' using 'cordova-plugin-file@6.0.1' Checking latest npm registry version for 'cordova-plugin-camera' using 'cordova-plugin-camera@4.0.3' 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 'cordova-plugin-splashscreen@5.0.2' Checking latest npm registry version for 'cordova.plugins.diagnostic' using 'cordova.plugins.diagnostic@4.0.10' 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://cordova-plugin-statusbar@2.2.3 installed version: 2.2.3 remote version: 2.2.3 plugin: cordova-plugin-camera source: npm://cordova-plugin-camera@4.0.3 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://cordova.plugins.diagnostic@4.0.10 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://cordova-plugin-whitelist@1.3.2 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://cordova-plugin-compat@1.2 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://cordova-plugin-file@6.0.1 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://cordova-plugin-splashscreen@5.0.2 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 ```