🛠️Dependency Hell
Also known as Dependency Conflict, Version Conflict, DLL Hell
When the packages you need each want a version of a third one, and they clash.
Think of it like
It is like two friends who both need the one red pen at the same time.
Example
Jack adds a new chart package. The install fails, because it needs a newer date package than his old form package allows.
Why it matters
It can freeze a project on old versions for months. Each update you skip makes the next one harder.
Definition
Example code
console
$ npm install chart-kit
npm error ERESOLVE unable to resolve dependency treeCommon mistake
Key takeaways
- 1Clashing needs. Two parts want two versions of one.
- 2It spreads. Packages need packages that need packages.
- 3Update often. Small steps keep the clashes small.