UNMET PEER DEPENDENCY #15708
Comments
I have been receiving similar notices as well with 7.5.0. Switching to an older version of node fixes the issue. |
I have same errors but with node v6.9.5 |
same here~node v6.9.5 |
same here~node v6.9.5 I am not installing it globally |
Same issue here running node 7.2.0 |
Same here on two different machines with eslint 4.0. Node v 8.1.0. And eslint doesn't work. Can't find anything related in Google. npm ERR! peer dep missing: eslint@^3.19.0, required by eslint-config-airbnb@15.0.1 On machine with eslint 3.20 everything is ok. |
I have the same issue with esline@4.0.0, node v6.10.1 |
Hey, could you all give a try again with npm@5, we fixed a whole slew of issues and I think I fixed this one. |
same here~node v7.4.0 Anyone fixed it? |
@iarna Thanks for your suggestion, I updated to the latest version of npm 5.3.0, uninstalled both eslint and eslint-plugin-import and reinstalled them, and I no longer get the error. Thank you! |
This still appears to be a problem with npm@5;
|
here the solution : |
@seila23 could you please explain your solution more clearly....Thank you |
just install 5 library :
|
Hi,
and typedoc-webpack-plugin package.json specifies the typedoc peer dependency this way:
So I'm getting the following errors when doing
Even so the peer dependency version is specified using >=0.5.0, a higher installed version (0.6.0) yield to UNMET error.
Hope this could help track down the problem. |
I've created a very simple set of packages to reproduce this problem based on real world packages that exhibit this behavior: https://www.npmjs.com/package/@peer-deps-repro/main Steps to reproduce
The current major version has this incorrect behavior:
Going back one major version, the install still behaves incorrectly:
Going back 2 major versions it installs correctly:
|
Looking at the file structure, it actually does install correctly, npm just fails to enumerate them properly.
Which would explain why apps still function even though npm is spitting out errors and warnings. |
@bjornstar Yes I think #19877 is a duplicate of this one. You said
I don't think that it's installed correctly. I ran your repro steps and it resolves to a toplevel
Code might work but only because it works with the wrong peerdep regardless. This is still a real peer dependency problem. When Note: omitted |
That's not how node's
When I've just released 2 new versions of the
|
@bjornstar I really appreciate you taking the time to explain this to me, as I am not not fully familiar with the resolve internals. I pulled your repro, updated to
And here is my directory structure:
Then I went into
I went into
I believe this should print the versions that
You said
But looking at these logs it seems like Am I missing something in this reasoning? I don't mean to be difficult or anything, I just want to confirm we're looking at the same thing and taking the same conclusions. |
Aw man, looks like you are right @filipesilva. I guess it was just wishful thinking that I've updated the instrumentation for this repro case to make it clear which module gets which dependency and it's as you said. Here's the output from
and the same thing using
In all actuality, I think we should be able to remove peer dependencies since we are deduping now. I'll go ahead and close my PR as it doesn't fix anything. |
Hi,
I'm opening this issue because npm is doing something I don't understand.
I get the error message UNMET PEER DEPENDENCY even though I have the said dependency installed.
I'm tying to install eslint-config-airbnb globally and it gives me:
I have the all installed, latest, and even tried to uninstall and the reinstall the exact required version, but still get the error.
And this is a quit common problem for me, getting UNMET PEER DEPENDENCY even though I have the said dependency installed.
npm v: 4.1.2
node v: 7.5.0
npm config get registry: https://registry.npmjs.org/
macOS 10.12.3
The text was updated successfully, but these errors were encountered: