diff --git a/hooks/gsd-check-update-worker.js b/hooks/gsd-check-update-worker.js index 8c2250870..e6b7f6d58 100644 --- a/hooks/gsd-check-update-worker.js +++ b/hooks/gsd-check-update-worker.js @@ -93,6 +93,11 @@ try { encoding: 'utf8', timeout: 10000, windowsHide: true, + // shell:true is required on Windows so 'npm' resolves to npm.cmd via PATHEXT. + // Without it, execFileSync looks for a literal 'npm' binary, fails with ENOENT, + // the catch swallows the error, latest stays null, and the statusline never shows + // the "⬆ /gsd-update" indicator on Windows. + shell: true, }).trim(); } catch (e) {}