Peer @angular/core@2.2.1 wants rxjs@5.0.0-beta.12


I’ve used ionic2 for 6 months now, and i cannot perform npm install on any project since a few days.
Even when i start a new project. I always get the following error :

npm ERR! peerinvalid The package rxjs@5.0.0-beta.12 does not satisfy its siblings’ peerDependencies requirements!
npm ERR! peerinvalid Peer @angular/core@2.2.1 wants rxjs@5.0.0-beta.12

I have the following package.json :

  "name": "ionic-app-base",
  "author": "Ionic Framework",
  "homepage": "",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  "dependencies": {
    "@angular/common": "2.2.1",
    "@angular/compiler": "2.2.1",
    "@angular/compiler-cli": "2.2.1",
    "@angular/core": "2.2.1",
    "@angular/forms": "2.2.1",
    "@angular/http": "2.2.1",
    "@angular/platform-browser": "2.2.1",
    "@angular/platform-browser-dynamic": "2.2.1",
    "@angular/platform-server": "2.2.1",
    "@ionic/storage": "1.1.7",
    "ionic-angular": "2.0.0",
    "ionic-native": "2.4.1",
    "ionicons": "3.0.0",
    "rxjs": "5.0.0-beta.12",
    "zone.js": "0.6.26",
    "sw-toolbox": "3.4.0"
  "devDependencies": {
    "@ionic/app-scripts": "1.0.0",
    "typescript": "2.0.9"

And here is the resut of ionic info :

Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 1.0.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.9
Node Version: v4.7.2
Xcode version: Not installed

Does anyone have any idea of what is the problem ? Node (version) ? Linux (case-sensitive) ?

Whats your npm version?

npm -v

I’m running node LTS (6x) and npm 3x and have not been able to replicate.
If your node version is out of date, you should upgrade to the lts release and npm 3

1 Like

Thank you, npm was at v2 and not v3.