Search code examples
google-mapscordovaionic2cordova-pluginsangular2-services

Ionic 2: Error installing Google Maps plugin


I'm trying to install this plugin for Google Maps: https://ionicframework.com/docs/native/google-maps/ but have an error:

Error: Failed to fetch plugin https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk via registry. Probably this is either a connection problem, or plugin spec is incorrect. Check your connection and plugin name/version/URL. Error: npm: Command failed with exit code 1 Error output: npm ERR! code 1

Thanks!!


Solution

  • $> git clone  https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk
    
    $> cd (path to your project)
    
    $> cordova plugin add (path to)/cordova-plugin-googlemaps-sdk