Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to avoid error message, when checking plugins? #37

Open
ThorvaldAagaard opened this issue Apr 10, 2019 · 2 comments
Open

How to avoid error message, when checking plugins? #37

ThorvaldAagaard opened this issue Apr 10, 2019 · 2 comments

Comments

@ThorvaldAagaard
Copy link

ThorvaldAagaard commented Apr 10, 2019

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?

@Gemeapp
Copy link

Gemeapp commented Jun 22, 2019

I am using two plugins directly from a GitHub repo. One fails, the other one is ok when using cordova-check-plugins

This works
"cordova-plugin-crop": "git+https://github.com/obeza/cordova-plugin-crop-with-ratio.git"

this fails
"cordova-plugin-app-preferences": "git+https://github.com/vash15/me.apla.cordova.app-preferences.git"

but lloking at the log file I am surprised to se the following
http fetch GET 404 https://registry.npmjs.org/geme.io
verbose stack Error: 404 Not Found - GET https://registry.npmjs.org/geme.io - Not found

and Geme.io is my project.

Is it because the clone I am using is updated to version 0.99.4, and the npm version is still at 0.99.3 ?

I have tried to compare both package.json and plugin.xml for the two projects to see if there is anything that needs to be changed, but I did not find any difference, that could explain why cordova-plugin-check is handling them differently

@Gemeapp
Copy link

Gemeapp commented Jun 22, 2019

Ok, now I have found the problem

The regular expression used to check if it as a git repository will not accept this repo

https://github.com/vash15/me.apla.cordova.app-preferences

due to . in the repo-name

after removing that constraint from the regular expression all is working fine

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

No branches or pull requests

2 participants