From fe9895d112e36910dab04224f83f37c23a7cc4b2 Mon Sep 17 00:00:00 2001 From: Cole Miller Date: Mon, 6 Oct 2025 14:38:30 -0400 Subject: [PATCH] node_runtime: Bump minimum version for system node to match copilot's requirement (#39632) Copilot now requires 22.x. See the last min node version bump: https://github.com/zed-industries/zed/pull/27912 Closes #39461 image Release Notes: - Zed will no longer use `node` from your `$PATH` if it's older than 22.x (previously, the minimum version was 20.x). Instead, it will fall back to its bundled `node`. This fixes being unable to use Copilot if an older `node` was installed system-wide. --- crates/node_runtime/src/node_runtime.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/node_runtime/src/node_runtime.rs b/crates/node_runtime/src/node_runtime.rs index 9d41eb1562943683aae3e785b1daac8bc3bfeb1a..3b2ba83ec339c13c3f00cc58d0fcbdffe2efd915 100644 --- a/crates/node_runtime/src/node_runtime.rs +++ b/crates/node_runtime/src/node_runtime.rs @@ -613,7 +613,7 @@ pub struct SystemNodeRuntime { } impl SystemNodeRuntime { - const MIN_VERSION: semver::Version = Version::new(20, 0, 0); + const MIN_VERSION: semver::Version = Version::new(22, 0, 0); async fn new(node: PathBuf, npm: PathBuf) -> Result { let output = util::command::new_smol_command(&node) .arg("--version")