{"record":{"id":"c9a0c4993eaafbf3","repo":"zed-industries/zed","slug":"failed-to-launch-npm-subcommand-subcommand-subco","errorCode":null,"errorMessage":"failed to launch npm subcommand {subcommand} subcommand\nerr: {:?}","messagePattern":"failed to launch npm subcommand (.+?) subcommand\nerr: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/node_runtime/src/node_runtime.rs","lineNumber":786,"sourceCode":"        proxy: Option<&Url>,\n        subcommand: &str,\n        args: &[&str],\n    ) -> Result<Output> {\n        let attempt = || async {\n            let npm_command = self.npm_command(directory, proxy, subcommand, args).await?;\n            let mut command = util::command::new_command(npm_command.path);\n            command.args(npm_command.args);\n            command.envs(npm_command.env);\n            if let Some(directory) = directory {\n                command.current_dir(directory);\n            }\n            command.output().await.map_err(|e| anyhow!(\"{e}\"))\n        };\n\n        let mut output = attempt().await;\n        if output.is_err() {\n            output = attempt().await;\n            anyhow::ensure!(\n                output.is_ok(),\n                \"failed to launch npm subcommand {subcommand} subcommand\\nerr: {:?}\",\n                output.err()\n            );\n        }\n\n        if let Ok(output) = &output {\n            anyhow::ensure!(\n                output.status.success(),\n                \"failed to execute npm {subcommand} subcommand:\\nstdout: {:?}\\nstderr: {:?}\",\n                String::from_utf8_lossy(&output.stdout),\n                String::from_utf8_lossy(&output.stderr)\n            );\n        }\n\n        output.map_err(|e| anyhow!(\"{e}\"))\n    }\n","sourceCodeStart":768,"sourceCodeEnd":804,"githubUrl":"https://github.com/zed-industries/zed/blob/9d272b036335401f339d024ea94968fd51016c40/crates/node_runtime/src/node_runtime.rs#L768-L804","documentation":"Launch failure in run_npm_subcommand: both attempts to spawn and run the npm subcommand failed at the process level (the inner error is embedded), so no output was produced. Usually means the npm/node binary is missing, unusable, or the environment could not be prepared.","triggerScenarios":"Thrown at crates/node_runtime/src/node_runtime.rs:785 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify Zed's managed Node.js installation exists and is executable","Check disk space and permissions on the installation directory","Trigger a re-download/reinstall of the Node runtime"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9d272b036335401f339d024ea94968fd51016c40","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}