cordova-plugin-googlemaps: cordova-plugin-googlemaps-sdk for IOS support won't install
I’m submitting a … (check one with “x”)
- question
- any problem or bug report
OS: (check one with “x”)
- Android
- iOS
- Browser
cordova information: (run $> cordova plugin list)
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-googlemaps 2.4.4 "cordova-plugin-googlemaps"
cordova-plugin-ionic-keyboard 2.1.2 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 2.1.4 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
Current behavior: When I attempt to install this plugin Google Maps SDK for IOS won’t install with the following error:
Installing "cordova-plugin-googlemaps" for ios
Fetching plugin "https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk/tarball/2.7.0" via git clone
Failed to install 'cordova-plugin-googlemaps': CordovaError: Failed to fetch plugin https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk/tarball/2.7.0 via git.
Either there is a connection problems, or plugin spec is incorrect:
Error: git: Command failed with exit code 128 Error output:
Cloning into '/var/folders/4p/w0rzq9d1379bs8q2mcvtphxm0000gn/T/git/1537444959684'...
fatal: unable to update url base from redirection:
asked for: https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk/tarball/2.7.0/info/refs?service=git-upload-pack
redirect: https://codeload.github.com/mapsplugin/cordova-plugin-googlemaps-sdk/legacy.tar.gz/2.7.0
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:100:37
at _rejected (/usr/local/lib/node_modules/cordova/node_modules/cordova-common/node_modules/q/q.js:864:24)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-common/node_modules/q/q.js:890:30
at Promise.when (/usr/local/lib/node_modules/cordova/node_modules/cordova-common/node_modules/q/q.js:1142:31)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/cordova-common/node_modules/q/q.js:808:41)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-common/node_modules/q/q.js:624:44
at runSingle (/usr/local/lib/node_modules/cordova/node_modules/cordova-common/node_modules/q/q.js:137:13)
at flush (/usr/local/lib/node_modules/cordova/node_modules/cordova-common/node_modules/q/q.js:125:13)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
Error: Failed to fetch plugin https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk/tarball/2.7.0 via git.
Either there is a connection problems, or plugin spec is incorrect:
Error: git: Command failed with exit code 128 Error output:
Cloning into '/var/folders/4p/w0rzq9d1379bs8q2mcvtphxm0000gn/T/git/1537444959684'...
fatal: unable to update url base from redirection:
asked for: https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk/tarball/2.7.0/info/refs?service=git-upload-pack
redirect: https://codeload.github.com/mapsplugin/cordova-plugin-googlemaps-sdk/legacy.tar.gz/2.7.0
It is strange as it worked before.
I started a new ionic blank project using the ionic start command, added the IOS platform using the ionic cordova platform add ios command and attempted to add this plugin but it fails to add.
If I copy and paste the https://codeload.github.com/mapsplugin/cordova-plugin-googlemaps-sdk/legacy.tar.gz/2.7.0 URL in the browser it downloads the tar.gz file but not by installing cordova-plugin-googlemaps-sdk. Same error occurs when I attempt to install just the supporting library by running the cordova plugin add cordova-plugin-googlemaps-sdk command.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 26 (19 by maintainers)
@fishgrind @battika Thanks, guys.
Glad that it worked for you @fishgrind .
Thanks for all the support and I am closing this issue.
Huge thanks @wf9a5m75 for your help.
@wf9a5m75 Your explanation got me thinking and I replaced Apple Git with Homebrew Git, removed platforms and plugins folder and added the ios platform again and it installed without trouble… Perhaps it was the Git version or as @battika mentioned perhaps an intermittent issue.
Thanks for all the quick support!
Thanks @wf9a5m75 for the explanation it actually makes lot of sense.
The funny thing is it started working for me out of the blue. I was trying to remove/reinstall the plugin and for some reason it installed correctly. I did not make any changes so I switched to another project where it failed before too and attempted to install the plugin. It was successful too. Finally, I created a new project with Ionic, added the IOS platform and this plugin. It worked fine. So, I suppose it was an intermittent issue for me and it works now. I hope rest of the guys can confirm.
On an aside note you can still consider switching back to the old git clone way if the tarball version does not prove to be rock solid on the long run.
Thank you for the attention and dealing with this issue promptly.
this is my package.json:
My package.json is the following - basically an Ionic blank project + this plugin: