From 2bc6e1a74b5848332c606d1b20c97aa7f374947d Mon Sep 17 00:00:00 2001 From: HexLab98 Date: Tue, 7 Jul 2026 21:17:34 +0700 Subject: [PATCH] fix(installer): put node.exe on PATH for Windows npm lifecycle scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit npm postinstall hooks spawn cmd.exe child processes that could not resolve `node` even when the installer found npm — causing desktop workspace npm install to fail with exit 1 (#48130). --- scripts/install.ps1 | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/scripts/install.ps1 b/scripts/install.ps1 index 179bca54b74..9712e293e42 100644 --- a/scripts/install.ps1 +++ b/scripts/install.ps1 @@ -502,6 +502,26 @@ function Sync-EnvPath { $env:Path = [Environment]::GetEnvironmentVariable("Path", "User") + ";" + [Environment]::GetEnvironmentVariable("Path", "Machine") } +# npm lifecycle scripts on Windows spawn ``cmd.exe /d /s /c node