A visual guide of Node.js module resolution
Node.js resolves modules by walking up the directory tree looking for node_modules/package
folder. This post illustrates the different folder structure influence module resolution, why symlinks (npm link, pnpm) can flip the result.