question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UNMET PEER DEPENDENCY @angular/core@4.2.3

See original GitHub issue

On installing angular2-notifications via npm to angular 4.2.3 we have:

+-- UNMET PEER DEPENDENCY @angular/core@4.2.3
+-- UNMET PEER DEPENDENCY @angular/router@4.2.3

Current Behavior

after npm install angular2-notifications I see:

+-- UNMET PEER DEPENDENCY @angular/core@4.2.3
+-- UNMET PEER DEPENDENCY @angular/router@4.2.3
`-- angular2-notifications@0.7.4

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN @angular/animations@4.2.5 requires a peer of @angular/core@4.2.5 but none was installed.
npm WARN ngx-modal@0.0.29 requires a peer of @angular/core@^2.0.0 but none was installed.
npm WARN ngx-modal@0.0.29 requires a peer of @angular/router@^3.0.0 but none was installed.

Steps to Reproduce (for bugs)

run npm install angular2-notifications

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
bhaskercharicommented, Oct 18, 2017

When is the plan to upgrade it to 4.2.3 ?

1reaction
ghostcommented, Nov 7, 2017

Still getting this: ├── UNMET PEER DEPENDENCY @angular/compiler@5.0.0 ├── UNMET PEER DEPENDENCY @angular/core@5.0.0

commands like: npm install @angular/compiler-cli@5.0.0 does not solve the problem.

Edit: if found a solution on stackoverflow

UNMET PEER DEPENDENCY error is thrown when the dependencies of one or more modules specified in the package.json file is not met. Check the warnings carefully and update the package.json file with correct versions of dependencies.

Then run

rm -rf node_modules/ npm cache clean npm install

This will install all the required dependencies correctly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I fix the npm UNMET PEER DEPENDENCY ...
UNMET PEER DEPENDENCY error is thrown when the dependencies of one or more modules specified in the package.json file is not met.
Read more >
compiler-cli 5.2.3 - wrong unmet peer dependency for ...
I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [X] Bug report [...
Read more >
Error npm UNMET PEER DEPENDENCY warning
I'm on Windows 10, with Node 5.6.0 and npm 3.6.0. I'm trying to install angular-material and mdi into my working folder. npm install ......
Read more >
incorrect peer dependency and has unmet ...
[3/4] Linking dependencies... warning " > abp-ng2-module@6.4.0" has incorrect peer dependency "@angular/common@^12.2.8". warning ...
Read more >
Fighting unmet peer dependencies - [SOLVED] - Ionic Forum
I'm fighting an unmet dependency concerning zone.js, here's the error when I run npm install. └── UNMET PEER DEPENDENCY zone.js@0.7.6.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found