As you may know npm3 resolves dependencies in flat manner, as opposed to nested. So, my question is what if two different packages A & B depend on two different versions of package C? Will each version of package C be installed separately in node_modules? Would love to get some primer here!
Thank You.
Peter Scheler
JS enthusiast
The answer is YES: C will by installed twice. The first installation is under the
node_modulesfolder. The second in npm v2 manner under anode_modulesfolder in the directory of the module depending on it.There is a detailed explanation on npm.