In npm v9, you would use the --install-strategy option. Acceptable values are `hoisted` (default; the unsavory flattened mega-dir), `nested` (like pnpm, except no linking to a central root store), `shallow` (top-level deps only, no transitives), and `linked` (like pnpm, including the part about deduped downloads and linking to a central root store).