npm如何去重依赖关系的不同版本的依赖关系?

为了更好地解释我的问题,我有一个依赖树的简化版本:

A --> B@1.0.0 --> D@1.0.0 --> E@1.0.0 A --> C@1.0.0 --> D@2.0.0 --> E@1.0.0 Legend: ======= A: Root component B & C: Dependencies of A D: Components that are not deduped, because of different major versions. E: Components that in my opinion should be deduped, but aren't. 

为什么组件E不被重复?

我使用npm@2.9.0

NPM 3将为此提供解决scheme。 使用testing版,看看它是否修复你的问题。