FAQ

Why does installing a plugin fail with ERR_PNPM_ADDING_TO_ROOT?

Updated August 13, 2026

An outdated pnpm on your PATH is shadowing the one DSH ships. DSH writes profile settings (packages, nodeLinker, autoInstallPeers) into the profile’s pnpm-workspace.yaml, which only pnpm 10+ reads. pnpm 7 through 9 ignore those keys, see only a workspace root, and abort pnpm add with ERR_PNPM_ADDING_TO_ROOT. DSH then prints a generic allowBuilds hint whenever the spec starts with github:, so that hint is misleading here: the run failed during resolution, before any prepare script. Fix it by resolving the bundled pnpm first. Run "pnpm --version" and, if it is below 10, prepend the DSH app’s bin directory to PATH in your shell profile — typically <DSH app>/Contents/Resources/host/bin on macOS — ahead of any version manager path such as $HOME/.n/bin, then open a new shell and retry. Setting ignore-workspace-root-check=true in the profile .npmrc also completes the install, but the old pnpm still ignores nodeLinker: hoisted and produces a layout DSH does not expect, so prefer upgrading pnpm.

← Back to all FAQs