# Problems while instaling angularfire2

**URL:** <https://forum.ionicframework.com/t/problems-while-instaling-angularfire2/128674>\
**Category:** Ionic Native\
**Created:** [April 23, 2018, 4:46pm UTC](https://forum.ionicframework.com/t/problems-while-instaling-angularfire2/128674 "2018-04-23T16:46:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ananthan03](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@ananthan03](https://forum.ionicframework.com/u/ananthan03)\
**Post date:** [April 23, 2018, 4:46pm UTC](https://forum.ionicframework.com/t/problems-while-instaling-angularfire2/128674/1 "2018-04-23T16:46:43Z")

</div>

Thank you for putting your time into this.

C:\Users\anant\chat\>npm install firebase angularfire2 --save  
npm WARN angularfire2@4.0.0-rc0 requires a peer of @angular/common@^4.0.0 but none is installed. You must install peer dependencies yourself.  
npm WARN angularfire2@4.0.0-rc0 requires a peer of @angular/compiler@^4.0.0 but none is installed. You must install peer dependencies yourself.  
npm WARN angularfire2@4.0.0-rc0 requires a peer of @angular/core@^4.0.0 but none is installed. You must install peer dependencies yourself.  
npm WARN angularfire2@4.0.0-rc0 requires a peer of @angular/platform-browser@^4.0.0 but none is installed. You must install peer dependencies yourself.  
npm WARN angularfire2@4.0.0-rc0 requires a peer of @angular/platform-browser-dynamic@^4.0.0 but none is installed. You must install peer dependencies yourself.  
npm WARN angularfire2@4.0.0-rc0 requires a peer of firebase@^3.6.6 but none is installed. You must install peer dependencies yourself.  
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node\_modules\fsevents):  
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})

- firebase@4.13.1
- angularfire2@4.0.0-rc0  
updated 2 packages in 40.522s

---

<div class="post-metadata">

**Author:** ![AaronSterling](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@AaronSterling](https://forum.ionicframework.com/u/AaronSterling)\
**Post date:** [April 23, 2018, 4:54pm UTC](https://forum.ionicframework.com/t/problems-while-instaling-angularfire2/128674/2 "2018-04-23T16:54:42Z")

</div>

What’s your package.json?

---

<div class="post-metadata">

**Author:** ![ananthan03](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@ananthan03](https://forum.ionicframework.com/u/ananthan03)\
**Post date:** [April 23, 2018, 5:04pm UTC](https://forum.ionicframework.com/t/problems-while-instaling-angularfire2/128674/3 "2018-04-23T17:04:25Z")

</div>

```auto
{
  "name": "chat",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "lint": "ionic-app-scripts lint",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  },
  "dependencies": {
    "@angular/animations": "5.2.9",
    "@angular/common": "5.2.9",
    "@angular/compiler": "5.2.9",
    "@angular/compiler-cli": "5.2.9",
    "@angular/core": "5.2.9",
    "@angular/forms": "5.2.9",
    "@angular/http": "5.2.9",
    "@angular/platform-browser": "5.2.9",
    "@angular/platform-browser-dynamic": "5.2.9",
    "@ionic-native/core": "4.6.0",
    "@ionic-native/google-plus": "^4.7.0",
    "@ionic-native/splash-screen": "4.6.0",
    "@ionic-native/status-bar": "4.6.0",
    "@ionic/storage": "2.1.3",
    "angularfire2": "^4.0.0-rc0",
    "cordova-android": "7.0.0",
    "cordova-plugin-device": "^2.0.2",
    "cordova-plugin-googleplus": "^5.3.0",
    "cordova-plugin-ionic-keyboard": "^2.0.5",
    "cordova-plugin-ionic-webview": "^1.2.0",
    "cordova-plugin-splashscreen": "^5.0.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "firebase": "^4.13.1",
    "ionic-angular": "3.9.2",
    "ionicons": "3.0.0",
    "rxjs": "5.5.8",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.26"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.1.8",
    "typescript": "~2.6.2"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-googleplus": {
        "REVERSED_CLIENT_ID": "com.googleusercontent.apps.529165664602-tpl6g40utvsr1bot8ofimkcmdl0tll3k"
      },
      "cordova-plugin-whitelist": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {},
      "cordova-plugin-ionic-keyboard": {}
    },
    "platforms": [
      "android"
    ]
  }
}

```

---

<div class="post-metadata">

**Author:** ![AaronSterling](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@AaronSterling](https://forum.ionicframework.com/u/AaronSterling)\
**Post date:** [April 23, 2018, 5:20pm UTC](https://forum.ionicframework.com/t/problems-while-instaling-angularfire2/128674/4 "2018-04-23T17:20:50Z")

</div>

Remove the angularfire2 line, and the firebase line, and try again. You should be installing AF 5, not AF 4. Are you updating from an old version of your project? You might need to clear the cache also.

---

<div class="post-metadata">

**Author:** ![adyba](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/adyba/32/72239_2.png) [@adyba](https://forum.ionicframework.com/u/adyba)\
**Post date:** [April 23, 2018, 5:32pm UTC](https://forum.ionicframework.com/t/problems-while-instaling-angularfire2/128674/5 "2018-04-23T17:32:03Z")

</div>

Your bleeding edge NPM package is bleeding 😉  
I’m currently working on a Ionic&AngularFire project that was generated in late February’18 and my Angular dependencies are `5.0.3` my firebase is `4.10.1` and my angularfire2 is `^5.0.0-rc.6` so my rough guess is that your very old version of angularfire2 cannot talk to your advanced firebase.

---

<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, 9:38pm UTC](https://forum.ionicframework.com/t/problems-while-instaling-angularfire2/128674/6 "2021-07-19T21:38:50Z")

</div>


