Package managers
findByKeywords finds packages by asking the runtime’s resolver where each declared dependency lives,
so it does not depend on one node_modules shape. But package managers lay packages out very
differently: hoisted folders, symlinks into a store, a store outside the project, or no
node_modules at all. This page maps which of those layouts are verified, against which release, and
what happens where one falls short.
At a glance
Section titled “At a glance”| Layout or capability | npm | pnpm | Yarn classic | Yarn berry | Bun | Deno |
|---|---|---|---|---|---|---|
| Verified against | 12.2.2 | 12.18.0 | 1.22.22 | 4.18.1 | 1.4.4 | 2.9.8 |
| Default layout | ✓ hoisted | ✓ isolated store | ✓ hoisted | ✓ Plug’n’Play | ✓ hoisted; isolated in a workspace | ✓ node_modules |
| Hoisted folders | ✓ default | ✓ nodeLinker: hoisted |
✓ default | ✓ nodeLinker: node-modules |
✓ --linker=hoisted |
— |
| Symlinks into a store | ✓ --install-strategy=linked |
✓ default | — | ✓ nodeLinker: pnpm |
✓ --linker=isolated |
✓ node_modules/.deno |
| Store outside the project | — | ✓ enableGlobalVirtualStore |
— | — | ✓ globalStore = true |
✓ nodeModulesDir: "none" |
| No package folders on disk | — | ✗ nodeLinker: { type: loaded } |
— | ✓ Plug’n’Play, inside yarn node |
— | — |
| Workspaces, from a member package | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ (⚠ under "none") |
A package whose exports hides package.json |
✓ | ✓ (✗ under loaded) |
✓ | ✓ | ✓ | ✓ |
| Lockfile the cache watches | package-lock.json |
pnpm-lock.yaml |
yarn.lock |
yarn.lock, .pnp.cjs, .pnp.data.json |
bun.lock, bun.lockb |
deno.lock |
✓ verified with a real install. ⚠ partly works, see the manager’s section. ✗ verified not to work. — the manager has no such layout.
How this stays current
Section titled “How this stays current”The default layouts are checked every week against each manager’s latest release by the
pm-latest-watch
job (workflow).
It covers npm, pnpm, Yarn classic, Yarn berry with node-modules and Plug’n’Play, Bun hoisted and
isolated, and Deno with nodeModulesDir "none" and "auto". It opens an issue when one breaks. Treat its latest green run as the live version of the
“Verified against” row for those layouts.
The other layouts on this page were verified by hand on 2026-11-06. The versions and the exact probe for each are in the scan log.
- Hoisted (default) and
--install-strategy=linkedboth work, from a single package and from a workspace member. The linked strategy puts packages innode_modules/.storeand symlinks them; the resolver follows the links. - npm 12 no longer reads
npm-shrinkwrap.json. The cache still watches it, which costs onestatand changes nothing.
- Isolated (default),
nodeLinker: hoisted, and the global virtual store all work. WithenableGlobalVirtualStore, packages live in pnpm’s store outside the project, and the resolver still finds them through the project’snode_moduleslinks. - Package maps (
nodePackageMap: { mode: load }, run throughpnpm exec node) work in a workspace. In a single-package project, Node 26.7.0 could not importfind-installed-packagesitself from the project root, so nothing in this package ran. nodeLinker: { type: loaded }finds nothing. This experimental linker (pnpm 12.10 and later) writes no package folders. Packages load from pnpm’s store through a loader thatpnpm execregisters. The resolver answers with paths undernode_modules/.pnpm/.pnpm-loader/that exist only inside that loader, andfindByKeywordsreads eachpackage.jsonfrom disk, so every read fails and no package is reported. Under plainnode, withoutpnpm exec, the package cannot even be imported. Use anothernodeLinkerin projects that rely onfindByKeywords.
Yarn classic
Section titled “Yarn classic”Hoisted node_modules, single package and workspaces. Yarn 1 is in maintenance mode.
Yarn berry
Section titled “Yarn berry”- Plug’n’Play (default). Run inside Yarn’s PnP runtime (
yarn node, or a process Yarn starts). Packages are located through Yarn’spnpapi, which ignoresexports, so anexports-hidden package is found too. Under plainnodeor under Bun, which have no PnP runtime, a PnP-only project resolves nothing. nodeLinker: node-modulesandnodeLinker: pnpmboth work, under Node and Bun.
- Hoisted and isolated both work, under Node and under Bun. A new workspace installs isolated by default.
- Global store (
globalStore = trueinbunfig.toml) works. Packages resolve into Bun’s cache, outside the project.
- With
node_modules(the default for apackage.jsonproject, ornodeModulesDir: "auto"), it works from a single package and a workspace, run under Deno or Node. - With
nodeModulesDir: "none", packages are served from Deno’s global cache and the packages are found, including one whoseexportshides./package.json, with or without arequireentry. Thererequire.resolve.pathsreturns the package’s own cache folder rather than anode_modulesfolder, and the resolver accepts that folder when itspackage.jsonnames the package. Deno 2.9.8 was verified on 2026-11-06. One thing is missed: from a workspace member, a dependency on a sibling workspace package is not found, because with nonode_modulesthe resolver cannot reach it. UsenodeModulesDir: "auto"or"manual"if you depend on a sibling.
Deno is checked every week, but it is not yet listed as a supported runtime in the readme.
Not yet supported
Section titled “Not yet supported”These were surveyed from their documentation but not installed, so none of this is verified:
- vlt installs into
node_moduleswith anode_modules/.vltstore, which resolution should handle. Its lockfile,vlt-lock.json, is not one the cache watches, so after avlt installthat changes only transitive packages, a cached result can be stale. - aube symlinks
node_modulesinto a global virtual store by default. Its lockfiles (aube-lock.yaml,aube-workspace.yaml) are watched. - nub uses an isolated
node_moduleswith a virtual store. Its lockfile (nub.lock) is watched.
See How packages are found for the resolution steps, and Cache for what the cache watches.