{"record":{"id":"d325c58718bdc58e","repo":"zed-industries/zed","slug":"missing-node-binary-file","errorCode":null,"errorMessage":"missing node binary file","messagePattern":"missing node binary file","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/node_runtime/src/node_runtime.rs","lineNumber":815,"sourceCode":"                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\n    async fn npm_command(\n        &self,\n        prefix_dir: Option<&Path>,\n        proxy: Option<&Url>,\n        subcommand: &str,\n        args: &[&str],\n    ) -> Result<NpmCommand> {\n        let node_binary = self.installation_path.join(Self::NODE_PATH);\n        let npm_file = self.installation_path.join(Self::NPM_PATH);\n\n        anyhow::ensure!(\n            smol::fs::metadata(&node_binary).await.is_ok(),\n            \"missing node binary file\"\n        );\n        anyhow::ensure!(\n            smol::fs::metadata(&npm_file).await.is_ok(),\n            \"missing npm file\"\n        );\n\n        let command_args = build_npm_command_args(\n            Some(&npm_file),\n            prefix_dir,\n            &self.installation_path.join(\"cache\"),\n            Some(&self.installation_path.join(\"blank_user_npmrc\")),\n            Some(&self.installation_path.join(\"blank_global_npmrc\")),\n            proxy,\n            subcommand,\n            args,\n        );","sourceCodeStart":797,"sourceCodeEnd":833,"githubUrl":"https://github.com/zed-industries/zed/blob/9d272b036335401f339d024ea94968fd51016c40/crates/node_runtime/src/node_runtime.rs#L797-L833","documentation":"Guard in NodeRuntime::npm_command: the ensure! check finds no file at installation_path/NODE_PATH, so the managed Node installation is incomplete or was removed. Any npm subcommand cannot run without its node binary.","triggerScenarios":"Thrown at crates/node_runtime/src/node_runtime.rs:814 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Let Zed re-download the Node runtime (it installs on first need)","Check that the installation directory was not deleted or blocked by antivirus","Verify disk space and permissions"],"exampleFix":null,"handlingStrategy":"validation","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"}