DSH Toolbox

zsh: command not found: corepack

corepack is the shim that runs pnpm for dsh plugin. If it is missing, no plugin install works — enable it once and the command goes through.

This is a broken toolchain, not a broken DSH install. The CLI itself still boots.

The error, verbatim

The shell cannot find the shim, so the plugin command never reaches pnpm.

Why it is missing, most likely first

A Node installed by a version manager or a distro package that excluded corepack. nvm, fnm, volta and several Linux packages vary here.

A PATH that does not include the Node prefix where corepack lives. npm prefix -g shows where it should be.

A corepack that exists but is disabled, which fails with a different message than this one — check corepack --version before assuming absence.

The fix

Enable the shim, then retry the install that failed.

corepack enable
dsh plugin --profile web add @deepseek-ai/dsh-otel

If that does not settle it

If corepack enable itself is not found, the binary is genuinely absent: install Node from nodejs.org or a version manager that ships it, then re-run.

If it enables but pnpm still fails, let corepack download the pinned pnpm version once with corepack prepare pnpm@latest --activate.

Common questions

Does this affect already-installed plugins?

No. The shim is only needed when plugin management runs; installed plugins load from the profile directory.

Can I use pnpm directly?

You can run pnpm yourself in the profile directory, but dsh plugin add is what records the row in the profile manifest.