When you install a package A that requires a dependency C of version 1.0.0 and then install package B that requires a dependency C of version 2.0.0
NPM v(3-6): replaces installed package C from version 1.0.0 to 2.0.0 and just shows a warning that a dependency needs to be installed.
NPM v(>=7) throws error that there's conflicting dependencies.
Of course, now updating package A to a version that supports a version of C that is also supported by package B can solve the issue. But what if package A was not developed after that and it supports only 1.0.0 of Package C. What if I want to have multiple versions of the same package in my node_module. I am just curious why npm doesn't allow you to have multiple versions of the same package.