npm install @deepseek-ai/dsh hangs in infinite CPU loop (npm 10.9.8) - peerDependencies on dsh-app-boot #4236
Hypertension42
started this conversation in
General
Replies: 2 comments
|
Both the npx install method and the git clone route pnpm install method both hangs |
0 replies
|
@Hypertension42 I just tried it again, the git clone method, I think if ou leave it, it would install on its own. It did hang but I left it and after a couple of minutes like 20mins it just installed and everything is okay. try the npm, if it hangs leave it for a couple of minutes or 20 mins if it still doesn't work then try the git clone method |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Environment
@deepseek-ai/dsh@0.1.1-rc.2Steps to reproduce
Expected behavior
Installs successfully.
Actual behavior
The process hangs forever with 100% CPU usage and no network activity (verified via
topandss: no open connections, no child processes). It never prints errors or progress. Looks like an infinite loop in npm's dependency resolution, not a network issue.Suspected cause
@deepseek-ai/dsh-app-bootdeclares 9 peerDependencies that are actually required at runtime:@deepseek-ai/cordis-plugin-group@deepseek-ai/cordis-plugin-loader@deepseek-ai/dsh-launch-environment@deepseek-ai/dsh-invariants@deepseek-ai/cordis-plugin-hmr@deepseek-ai/cordis-plugin-include@deepseek-ai/dsh-home-paths@deepseek-ai/dsh-system-prompt@deepseek-ai/cordisnpm 10.9.8 spins forever while resolving this peer dependency graph.
Workaround (verified)
npm install @deepseek-ai/dsh --legacy-peer-deps # peer deps are NOT auto-installed with --legacy-peer-deps, so install them explicitly: npm install @deepseek-ai/cordis-plugin-group @deepseek-ai/cordis-plugin-loader @deepseek-ai/dsh-launch-environment @deepseek-ai/dsh-invariants @deepseek-ai/cordis-plugin-hmr @deepseek-ai/cordis-plugin-include @deepseek-ai/dsh-home-paths @deepseek-ai/dsh-system-prompt @deepseek-ai/cordis --legacy-peer-depsRecommendation
These packages look like they should be regular
dependencies, notpeerDependencies— peer deps are meant to be provided by the host application, butdshrequires them at runtime and crashes withERR_MODULE_NOT_FOUNDif they are missing. Fixing the dependency declarations (or documenting--legacy-peer-depsin the README) would resolve both the install hang and the runtime crash.All reactions