Dependency Resolution (hoist/nest) Playground

Dodi’s node_modules shelf: write package.json (chalk, log-symbols, chalk-template, overrides) and follow npm install step by step, versions from a registry…

Why it matters

Two versions of a package in npm ls, a bundle swollen by the same code twice, an instanceof that fails between packages: all of them come from how node_modules is laid out. Knowing how npm places packages makes all three predictable, and fixable with ranges rather than trial and error.

The key idea

One name, one spot per folder: what fits is shared, what clashes nests

Common mistakes

Try it in this playground