I am getting this error in the terminal --
cordova plugin add https://github.com/mapsplugin/cordova-plugin-googlemaps#multiple_maps --variable API_KEY_FOR_ANDROID=androidkey --variable API_KEY_FOR_IOS=ioskey --save ✖ Running command - failed! [ERROR] Cordova encountered an error. You may get more insight by running the Cordova command above directly. [ERROR] An error occurred while running cordova plugin add https://github.com/mapsplugin/cordova-plugin-googlemaps#multi... (exit code 1): Error: Failed to fetch plugin https://github.com/mapsplugin/cordova-plugin-googlemaps#multiple_maps via registry. Probably this is either a connection problem, or plugin spec is incorrect. Check your connection and plugin name/version/URL. Failed to get absolute path to installed module
It's not my connection. I have tried this in another app and it seems to work fine. Thanks
I resolved this in my ionic project with some bold steps as follows:
cordova-plugin-googlemaps
: I found them in config.xml,package.json & package-lock.json
package-lock.json
for good measureandroid
or ios
) from your projectplatforms,plugins,www
cordova-plugin-googlemaps
(At this point, it should successfully save it in config.xml
)