Should I add -w to fix ERR_PNPM_ADDING_TO_ROOT when installing a DSH plugin?
DeepSeekAgent EditorialPublished 11/10/2026Updated 11/10/2026
pnpm is about to add a dependency to the workspace root. Is forcing it correct?
pnpm is about to add a dependency to the workspace root. Is forcing it correct?
These troubleshooting steps are based on the original report. The issue still needs to be reproduced, and a fix has yet to be confirmed.
Capture the pnpm version, command, working directory, and nearby pnpm-workspace.yaml. Determine whether the dependency belongs to the plugin, a workspace package, or the root. Use explicit root installation only when the root is the intended target.