[One-click fix] DeepSeek Harness community version plug-in uninstall error and built-in plug-in disconnected/not installed after installing new plug-in

When using DeepSeek Harness desktop, many people will encounter two frequent pain points: ① When uninstalling the plug-in, duplicated mapping key or ERR_PNPM_INVALID_VERSION_UNION will be reported as an error, making it impossible to uninstall; ② Every time a new plug-in is installed in the community, the built-in dsh-community, dsh-context, and dsh-pocket will become "not running/not installed" and a red text error will be reported.

When you use DeepSeek Harness to install or uninstall plug-ins, you should often encounter the following two headaches:

❌ FAQ 1: After installing a new plug-in, the original plug-in suddenly becomes "Not Running/Not Installed"

Every time a new plug-in is installed in the client, the originally good dsh-community, dsh-context, and dsh-pocket suddenly fail, and a red text error appears:

dsh: cannot resolve profile bundle "dsh-community" from the dsh installation or ...\.dsh\profiles\desktop; run 'dsh plugin --profile desktop install' if its dependency is not installed

❌ FAQ 2: Failed to uninstall plug-in, pop-up window error

When clicking Uninstall on the plug-in management page, an error message pops up saying that it cannot be uninstalled:

[ERROR] duplicated mapping key
[ERR_PNPM_INVALID_VERSION_UNION] Invalid versions union. Found: "xxx@file". Use exact versions only.
🔍 Why do these problems occur? (Cause analysis)

Built-in plug-ins miss the dependency statement (why installing new plug-ins will flush out old plug-ins): dsh-community, dsh-context, dsh-pocket, etc. are actually built-in plug-ins that come with the client installation package (located under resources\plugins-bundled in the installation directory). However, when the client initializes the configuration, it only writes them into the bundles startup list of ~/.dsh/profiles/desktop/package.json, but misses out the dependencies list. When you install any new plugin, pnpm install is automatically run under the hood. When pnpm finds that these built-in plug-ins are not in the dependencies list, it will treat them as "extra files" and move them directly into the node_modules\.ignored directory, causing the plug-in to instantly drop offline and report "not installed".

pnpm-workspace.yaml format pollution (why uninstallation fails): When installing some third-party plug-ins, they will repeatedly write the same key into the allowBuilds field of ~/.dsh/profiles/desktop/pnpm-workspace.yaml, or write package names with @file or @https suffixes. However, pnpm only allows pure package names or precise version numbers, causing a direct crash when executing any subsequent uninstall/install commands.

🛠️ One-click repair method (supports all Windows computers)

In order to make it easier for you not to manually search for hidden folders and change configurations, I compiled a one-click repair batch script (.bat) that will automatically complete the following three things:

Automatically clean up duplicate keys and illegal @file/@https suffixes in pnpm-workspace.yaml;
Automatically scan the plugins-bundled built-in plug-ins that come with the client, and officially register them in the dependencies of package.json through link: (completely preventing them from being accidentally deleted by pnpm when installing new plug-ins in the future);
Automatically clean up .ignored and call the client's built-in pnpm to re-establish the plug-in link (can be used even if Node.js is not installed on the computer).
👉 Usage steps:
Directly download the Repair DeepSeek_Harness plug-in.bat in the attachment (or create a new text document on the desktop, copy the code below, save and rename it as Repair DeepSeek_Harness plug-in.bat).
Double-click to run the .bat file.
After seeing the prompt "Repair Completed", restart the DeepSeek Harness client!

Exclusive accessories (1)

Log in to download
修复DeepSeek_Harness插件.zip ZIP2.2 KB 2 downloads
Login to download
salted fish avatar
咸鱼Lv2UID 803687
Thanks for sharing, very useful

please Log in or Register an account Participate in discussions, download exclusive add-ons or unlock level posts.