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

Cordova Installation via Github not working #19

Open
DevinCarpenter opened this issue Aug 21, 2017 · 4 comments
Open

Cordova Installation via Github not working #19

DevinCarpenter opened this issue Aug 21, 2017 · 4 comments

Comments

@DevinCarpenter
Copy link

Installing the plugin via Github does not work.

Using command cordova plugin add https://github.com/rodrigo-martinezd/cordova-dialog-gps.git

Returns error information:
Error: Failed to fetch plugin https://github.com/rodrigo-martinezd/cordova-dialog-gps.git via registry. Probably this is either a connection problem, or plugin spec is incorrect. Check your connection and plugin name/version/URL. Error: cmd: Command failed with exit code 4294963238 Error output: npm ERR! path C:\Users\Name\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-4d9bb76c\package.json npm ERR! code ENOENT npm ERR! errno -4058 npm ERR! syscall open npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\Name\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-4d9bb76c\package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

But using this command to install cordova plugin add cordova-dialog-gps
works perfectly. I wanted to point out that you should add that command to your documentation on github and the NPM documentation as that is what works for me. I'm using cordova version 7.0.1.

Thank you for the great plugin!

@rodrigo-md
Copy link
Owner

rodrigo-md commented Aug 21, 2017 via email

@DevinCarpenter
Copy link
Author

I'm glad it's useful, and apologies for writing back so late. Good luck with your studies. Cheers!

@msd117
Copy link

msd117 commented Feb 6, 2018

Please add this cordova plugin add cordova-dialog-gps in documentation if its valid

@rolinger
Copy link

@rodrigo-martinezd - Plugin failing in Cordova 8.0 with cordova-android 7.0. Not certain if its the 8.0 or the 7.0 thats causing the problem. But the xml directory does not exist.

cp: copyFileSync: could not write to dest file (code=ENOENT):c:\Users\rolin\dev\myApp\platforms\android\res\xml\config.xml

Parsing c:\Users\rolin\dev\myApp\platforms\android\res\xml\config.xml failed
(node:15568) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOENT: no such file or directory, open 'c:\Users\rolin\dev\myApp\platforms\android\res\xml\config.xml'

If I manually create the xml directory, the build then gets the next error saying the \res\values\ directory does not exist...so I add it. Then the next error is \res\values\strings.xml does not exist. So I add it...and then it errors again.

I wonder with a few tweaks if this plugin can be updated and brought into the 2018? :-) Would be mucho grateful if you did....been using the plugin a long time. I would like to keep it in my app.

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

4 participants