Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The package [email protected] does not satisfy its siblings' peerDependencies requirements?

Tags:

npm

angular

ngrx

I am trying to install @ngrx/store module in my angular 2 app. I am using npm install and getting the following error:

npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer @angular/[email protected] wants [email protected]
npm ERR! peerinvalid Peer @angular/[email protected] wants [email protected]
npm ERR! peerinvalid Peer [email protected] wants [email protected]
npm ERR! peerinvalid Peer @ngrx/[email protected] wants [email protected]

Does this mean I have to upgrade my angular2 module because it needs a lower version of [email protected]?

like image 590
bier hier Avatar asked May 09 '16 09:05

bier hier


3 Answers

The problem is that you have both beta.16 and rc.0 as dependencies in the same project. Since angular changed the npm package name between the two, you will need to uninstall and remove dependencies on whichever one you don't want. Assuming you want to upgrade to the rc.0, remove it from your package.json and run:

npm uninstall angular2
like image 157
Pseudo Avatar answered Nov 03 '22 15:11

Pseudo


I was on node v 0.12 and upgrading to version 6.9 fixed this

like image 3
Azwar Khalid Avatar answered Nov 03 '22 14:11

Azwar Khalid


Try running this, it might work for you:

npm install --save @angular/core @angular/compiler @angular/common @angular/platform-browser @angular/platform-browser-dynamic [email protected] [email protected]

like image 1
Saurabh Maurya Avatar answered Nov 03 '22 15:11

Saurabh Maurya