Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular 2 rc3 - unresolved dependencies

Im using packages.json from official Angular2 site, the quick start. Yesterday it was working fine, today npm cant resolve dependecies. I get error:

npm ERR! peerinvalid The package @angular/[email protected] does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected]
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected]
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected]
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected]
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected]
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected]
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/core@^2.0.0-rc.2
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/core@^2.0.0-rc
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected]
npm ERR! peerinvalid Peer [email protected] wants @angular/[email protected]

My npm-debug: http://q.i-systems.pl/file/3dd29e55.zip

like image 731
ayeo Avatar asked Jun 24 '16 09:06

ayeo


2 Answers

This happens when you update some packages and leave some hanging, that's what angular just did in RC.3.


So instead of fixing who needs what,

  • I deleted node_modules
  • copied package.json from QuickStart, added my extras
  • ran npm install

npm is happy again.

like image 79
Ankit Singh Avatar answered Nov 06 '22 07:11

Ankit Singh


Upgrade npm worked for me:

npm install npm -g

Then delete node_modules and

npm install
like image 5
lachty Avatar answered Nov 06 '22 07:11

lachty