DSH Common Errors and How to Fix Them: Install, Crash, Update

A symptom-matched repair guide for DeepSeek Harness built from real screen recordings: the blocked npm.ps1 script, the first-run npx wait, the startup-repair dialog for conflicting plugins, and the version check that saves a broken update — every command cross-checked against official Discussions.

Last updated: 2026-09-30

Windows PowerShell shows the red PSSecurityException error block, the set-ExecutionPolicy RemoteSigned prompt with Y, the RemoteSigned confirmation from get-ExecutionPolicy, and a successful npm -v, while the tutorial window highlights the success criterion that both commands must return version numbers.
From error to verified fix in one screen: policy changed to RemoteSigned, npm -v answers 11.19.0, and the tutorial's acceptance line is highlighted on the right.

This page is organized the way errors actually happen: by what you see, not by error code. Three recordings drive it — a Windows install that hits the classic npm.ps1 block, a macOS DSH Desktop that refuses to start because two plugins collide, and a Windows machine that goes sideways after an update. Each section shows the failing screen first, then the exact fix being executed.

Scope note: Windows sandbox permission errors (0xC0000142, Win32 5) are their own family and live in the dedicated handbook: Troubleshooting handbook

Symptom → first check → fix

What you seeFirst checkFix
Red wall of text mid-install: npm.ps1 cannot be loaded… PSSecurityExceptionPowerShell execution policy still at the default RestrictedAllow scripts, then verify (step 1)
npx @deepseek-ai/dsh web sits silent for minutes on first runWhether it is still downloading packages, not frozenMirror registry plus verbose logs (step 2)
A startup-repair dialog says it found plugins that break launchWhich plugin and component the dialog namesUninstall the offender in repair mode (step 4)
After an update, plugins misbehave in bulk or versions disagreeThe version dsh --version actually reportsPin and reinstall, then verify (step 6)

Fixes, matched to the symptom

Symptom 1 · The install itself fails

  1. 1

    Lift the PowerShell execution-policy block

    The most common red wall on a first Windows install is npm : File C:\Program Files\nodejs\npm.ps1 cannot be loaded because running scripts is disabled on this system, tagged PSSecurityException and UnauthorizedAccess. That is not DeepSeek Harness failing — it is PowerShell's default Restricted policy refusing every script. Open PowerShell as administrator, run set-ExecutionPolicy RemoteSigned, answer Y, and confirm with get-ExecutionPolicy. When node -v and npm -v each print a version number, the environment is clear.

    $set-ExecutionPolicy RemoteSigned
    $get-ExecutionPolicy
    $node -v
    $npm -v
    A DeepSeek Harness install fails in Windows PowerShell with the red error npm.ps1 cannot be loaded because running scripts is disabled on this system, listing PSSecurityException and UnauthorizedAccess beside the tutorial's fix for it.
    The classic blocked install: npm.ps1 is refused by the execution policy, and the Notepad tutorial names the cause and the RemoteSigned remedy.Watch at 7:00
  2. 2

    Stalled download: switch to a mirror and turn on verbose logs

    If npm install hangs on the same line after Node.js is in place, the usual cause is a slow route to the npm registry. The recording switches to the npmmirror mirror: npm install -g --registry=https://registry.npmmirror.com @deepseek-ai/dsh, then starts with npx --verbose @deepseek-ai/dsh web so the log shows every package being fetched. Official Discussions have documented first runs sitting silent for 8+ minutes on Windows (#176) — slow is not dead, so give the window time.

    $npm install -g --registry=https://registry.npmmirror.com @deepseek-ai/dsh
    $npx --verbose @deepseek-ai/dsh web
    Windows PowerShell runs npx @deepseek-ai/dsh web and prints Need to install the following packages with @deepseek-ai/dsh@0.1.5-rc.2, waiting at the Ok to proceed? (y) prompt.
    First launch asks before installing: answer y at Ok to proceed? and npx pulls the dsh package before starting the web UI.Watch at 11:40
  3. 3

    Know what a successful launch looks like

    Run npx @deepseek-ai/dsh web. On the very first run it asks Ok to proceed? (y) — type y and wait while it installs the dsh package. Launch only counts as successful once the terminal prints the dsh web: http://127.0.0.1:3080/… address with its token and notes that it is opening the default browser. If the browser does not open by itself, paste that address manually.

    $npx @deepseek-ai/dsh web

Symptom 2 · It crashes at startup (plugin conflict)

  1. 4

    Read the startup-repair dialog and claim the culprit

    When DSH Desktop pops a dialog titled it found plugins that cause startup failure, a plugin is blocking the launch during registration — in the recording, a plugin registered a duplicate service component: the session-reference component was defined twice, the plugins conflict on load, and the dialog names dsh-tui. Discussions record the same shape: @deepseek-ai/dsh-session-reference failing to register after a harness upgrade leaves the web app unable to start (#7872). The uninstall-this-plugin-and-recheck button is safe — the dialog itself states that workspaces, sessions, model settings and other plugins are not deleted.

    DSH Desktop's startup repair dialog reports that a plugin registered a duplicate service component — the session-reference component is defined twice — lists dsh-tui as the failing plugin, and offers an uninstall-and-recheck button.
    A plugin conflict stops launch cold: the repair dialog names the duplicated session-reference component and the culprit dsh-tui.Watch at 0:05
  2. 5

    Let the recheck finish before restarting

    After clicking uninstall-and-recheck, the button flips to processing and rechecking while dsh removes the conflicting plugin and rescans startup. Let the scan complete and the dialog stay gone, then restart dsh. If you still want that plugin, check the plugin market for a build that matches your harness version before reinstalling it.

    The same DSH Desktop repair dialog shows its button reading 正在处理并重新检测 (processing and rechecking) while it removes the conflicting plugin and rescans startup.
    Mid-repair: after the uninstall click, the dialog switches to processing-and-rechecking until the rescan clears the conflict.Watch at 1:45

Symptom 3 · It breaks after an update

  1. 6

    Ask for the version first, then pin the reinstall

    When plugins misbehave in bulk after an update, start with dsh --version to learn what is actually installed. The community has repeatedly hit npm's latest tag pointing at a stale build (#7872, #5813), so the recording and Discussions alike reinstall a pinned version: npm install -g @deepseek-ai/dsh@<version>, exact down to the patch number, never @latest. Bulk plugin breakage right after an upgrade wave is filed as #8145, and old plugins failing format checks on a new harness as #8432 — uninstall the incompatible plugin and wait for its adapted release.

    $dsh --version
    $npm install -g @deepseek-ai/dsh@<version>
    Windows Command Prompt answers dsh --version with 0.1.5-rc.2 on a plain desktop, the first diagnostic after a broken DeepSeek Harness update.
    Check before you reinstall: dsh --version reports 0.1.5-rc.2, telling you which build the broken update actually left behind.Watch at 2:00
  2. 7

    Accept the fix in the browser

    After the pinned reinstall, run npx @deepseek-ai/dsh web again, wait for the fresh 127.0.0.1:3080 address, and open it: the workspace loads and the model picker shows a DeepSeek model, which closes out this round of update trouble. Before the next big upgrade, back up your dsh configuration so a bad release stays reversible — the rollback details live in the troubleshooting handbook.

    The DeepSeek Harness web UI has finished loading at 127.0.0.1:3080, showing the 探索未至之境 workspace prompt box with the DeepSeek-V4.1-Flash model selected in the dropdown.
    Acceptance after the fix: the Harness workspace renders with its prompt box ready and DeepSeek-V4.1-Flash attached as the model.Watch at 16:20

Frequently asked questions

Quick answers to the questions that follow these three symptoms.

Does npm.ps1 cannot be loaded mean DeepSeek Harness is broken?

No. Windows PowerShell's default Restricted execution policy blocks every script, including the npm.ps1 that ships with Node.js. Run set-ExecutionPolicy RemoteSigned once in an administrator PowerShell (step 1) and the install proceeds. RemoteSigned only requires downloaded scripts to be signed — it is the setting Microsoft documents for development machines.

npx @deepseek-ai/dsh web hangs with no output — is it dead?

Most likely it is still downloading. The first run pulls the full dsh package with its dependencies, and Discussions record first runs sitting silent for 8+ minutes on Windows (#176). Switch to the npmmirror registry and add --verbose (step 2) to watch progress. When something truly fails, the terminal prints an explicit red error — handle that message on its own terms.

Will the startup repair dialog deleting a plugin lose my sessions or settings?

No. The dialog states it plainly: workspaces, sessions, model settings and other plugins are not deleted — it removes only the plugin it named and rescans. The destructive moves are things like wiping the dsh home directory by hand; do not do those without a backup.

After an update my plugins all break — wait for a fix or roll back?

Start with dsh --version. Discussions filed bulk plugin failures after an upgrade wave (#8145) and old plugins failing format checks on a new harness (#8432), and latest has also pointed at stale builds before (#7872, #5813) — machines hit by that tag error recover immediately with a pinned reinstall. For a longer-term lock or a rollback, follow the version rollback section of the troubleshooting handbook.

Are these errors the same as the Windows sandbox permission errors (0xC0000142 / Win32 5)?

No. 0xC0000142, Access is denied and SetNamedSecurityInfoW Win32 5 belong to the sandbox-provisioning family that appeared after upgrades — a different lineage entirely, not covered here. The troubleshooting handbook's Windows sandbox section walks through those reports step by step.

Related guides

Where to go next, depending on what your error turns out to be.

Video sources

Screenshots are cropped from three public tutorial recordings; every fix shown was executed on screen by its uploader and cross-checked against the matching official Discussions reports. Deep links jump to the exact second.

DSH Plugins is an independent community directory of DeepSeek Harness plugins. Not affiliated with or endorsed by DeepSeek. Third-party plugins are not security-audited — review the source before installing.

New DeepSeek Harness plugins, weekly. No spam.