[英]NPM is saying UNMET_PEER_DEPENDENCY. Why?
I'm npm install
'ing my project now, using npm 3.3.12
, and this happens:我现在正在
npm install
'ing 我的项目,使用npm 3.3.12
,这发生了:
When I read the UNMET PEER DEPENDENCY
warning I though: There are two possibilities, either the project react
has an unmet peer dependecy, or someone depends on react@0.14.7
and is not finding it.当我读到
UNMET PEER DEPENDENCY
警告时,我想:有两种可能性,要么项目react
有一个未满足的 peer 依赖,要么有人依赖react@0.14.7
并且没有找到它。
It turns out the react
project does not have any peer dependency.事实证明,
react
项目没有任何对等依赖。 So someone must be depending on it.所以一定有人依赖它。 But how am I supposed to know who's depending on it?
但是我怎么知道谁在依赖它呢? Just so you know, I have
react ^0.14.2
on my package.json.只是让你知道,我对我的 package.json
react ^0.14.2
。
So, how do I find out who's dependency is not met?那么,我如何找出不满足谁的依赖关系?
BONUS question : Why is react-widgets
yellow?.奖金问题:为什么
react-widgets
黄色的?。
npm no longer installs peer dependencies so you need to install them manually. npm 不再安装对等依赖项,因此您需要手动安装它们。
like: npm install react gearz
像:
npm install react gearz
Check this answer too: How to solve npm UNMET PEER DEPENDENCY也检查这个答案: 如何解决 npm UNMET PEER DEPENDENCY
Bonus: Outdated NPM Packages are marked as YELLOW奖励:过时的 NPM 包被标记为黄色
check: https://realguess.net/2014/12/13/update-outdated-npm-packages/检查: https : //realguess.net/2014/12/13/update-outdated-npm-packages/
. .
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.