How does NPM handle version conflicts?

Since NPM modules are version 3 node and dependencies are installed at the same root level. But what if I install two modules that depend on two different versions of the same module? For example, if I install async npm i async@2.1.4 , which requires lodash version 4.14.0 , then I install yoman npm i yo@1.8.5 , which requires lodash version 3.2.0 , how does npm resolve this conflict?

+6
source share

Source: https://habr.com/ru/post/1014857/


All Articles