Npm packet conflict problem

After

npm3, dependency changes from tree to flat

Is there any mechanism to resolve package version conflicts in the future of

npm3?

  1. install less-loader, less-loader dependency clone2.1.1 locally first.
  2. install clone@2.0.0 locally (specify version 2.0.0). It is found that the clone version becomes 2.0.0

if less-loader is not compatible with clone@2.0.0, isn"t there an error when packing?

Mar.28,2021

see if there are any surprises in the node_modules/less-loader/node_modules directory at this time.
it is recommended to go to the npm official website to read the version control strategy of v3 carefully

Menu