# Error Installing Google Maps Native Plugin in with Ionic

**URL:** <https://forum.ionicframework.com/t/error-installing-google-maps-native-plugin-in-with-ionic/112418>\
**Category:** Ionic Native\
**Created:** [November 16, 2017, 6:38pm UTC](https://forum.ionicframework.com/t/error-installing-google-maps-native-plugin-in-with-ionic/112418 "2017-11-16T18:38:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barbarosa](https://avatars.discourse-cdn.com/v4/letter/b/2acd7d/32.png) [@Barbarosa](https://forum.ionicframework.com/u/Barbarosa)\
**Post date:** [November 16, 2017, 6:38pm UTC](https://forum.ionicframework.com/t/error-installing-google-maps-native-plugin-in-with-ionic/112418/1 "2017-11-16T18:38:23Z")

</div>

I am using Ionic 3-Angular 4 to build an app, and I am trying to add Google Maps native SDK plugin and I keep getting the following Error:

Error: Failed to fetch plugin file:node\_modules/cordova-plugin-googlemaps 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 4294963229 Error output:  
npm ERR! path C:\Users\shawe\Desktop\Xampp Server\Ionic\beitelmagdes\node\_modules\cordova-plugin-googlemaps\npm-shrinkwrap.json  
npm ERR! code ELOOP  
npm ERR! errno -4067  
npm ERR! syscall open  
npm ERR! ELOOP: too many symbolic links encountered, open ‘C:\Users\shawe\Desktop\Xampp Server\Ionic\beitelmagdes\node\_modules\cordova-plugin-googlemaps\npm-shrinkwrap.json’

npm ERR! A complete log of this run can be found in:  
npm ERR! C:\Users\shawe\AppData\Roaming\npm-cache\_logs\2017-11-16T07\_43\_23\_428Z-debug.log

[ERROR] An error occurred while running cordova plugin add cordova-plugin-googlemaps --variable  
API\_KEY\_FOR\_ANDROID=AIza… (exit code 1).

Please Help

---

<div class="post-metadata">

**Author:** ![wf9a5m75](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/wf9a5m75/32/118692_2.png) [@wf9a5m75](https://forum.ionicframework.com/u/wf9a5m75)\
**Post date:** [November 17, 2017, 5:25pm UTC](https://forum.ionicframework.com/t/error-installing-google-maps-native-plugin-in-with-ionic/112418/2 "2017-11-17T17:25:20Z")

</div>

Open the `config.xml`, `package.json` and `package-lock.json` files, then remove the lines `cordova-plugin-googlemaps` from them.

Then install without cache

```auto
$> npm clean cache

$> cordova plugin add cordova-plugin-googlemaps --variable
API_KEY_FOR_ANDROID="..." --no-cache

```

---

<div class="post-metadata">

**Author:** ![Barbarosa](https://avatars.discourse-cdn.com/v4/letter/b/2acd7d/32.png) [@Barbarosa](https://forum.ionicframework.com/u/Barbarosa)\
**Post date:** [November 18, 2017, 2:27am UTC](https://forum.ionicframework.com/t/error-installing-google-maps-native-plugin-in-with-ionic/112418/3 "2017-11-18T02:27:43Z")

</div>

Well, I tried that, but it is still not working. What I realized is, it generates this error only if IOS platform is added.  
I tried adding the platform first, and then adding the plugin and it gives the error.  
Then, it does the same thing when I reverse the process, but it works very fine between Android plaform and the plugin.  
So, it is only a problem of IOS and the plugin. Any help?

---

<div class="post-metadata">

**Author:** ![Ben1nB1ack](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ben1nb1ack/32/114904_2.png) [@Ben1nB1ack](https://forum.ionicframework.com/u/Ben1nB1ack)\
**Post date:** [November 18, 2017, 4:07am UTC](https://forum.ionicframework.com/t/error-installing-google-maps-native-plugin-in-with-ionic/112418/4 "2017-11-18T04:07:18Z")

</div>

first resolve issue need to resovle

```auto
ionic doctor check

```

then remove the google maps plugin

```auto
$ npm uninstall --save @ionic-native/google-maps
ionic cordova plugin rm cordova-plugin-googlemaps

```

you may have to remove the ios plaform and readd it to clear dependencies

```auto
ionic cordova platform rm ios
ionic cordova platform add ios

```

then re-add google maps plugin

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 10:03pm UTC](https://forum.ionicframework.com/t/error-installing-google-maps-native-plugin-in-with-ionic/112418/5 "2021-07-19T22:03:37Z")

</div>


