You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
run-gatsby.js fails on Windows when using pnpm/bun (missing gatsby.cmd) #8143
The scripts/run-gatsby.js wrapper hardcodes gatsby.cmd as the Gatsby binary path on Windows. When dependencies are installed with pnpm or bun, only gatsby.exe / gatsby.bunx are created in node_modules/.bin/, causing the dev server to fail with:
'gatsby_modules.bin\gatsby.cmd' is not recognized as an internal or external command
Fix: Fall back through gatsby.cmd → gatsby.exe → gatsby.bunx on Windows.
Expected Behavior
for users using bun/pnpm the server should start normally for that not only search for gatsby.cmd but gatsby.exe and gatsby.bunx as fallback on windows
Activity
PARTH-TUSSLE commentedon Sep 27, 2026
Hey @tanav29 , you're on a different branch from the master , could you verify the issue exists against master as well ?
tanav29 commentedon Sep 27, 2026
@PARTH-TUSSLE yes it is not working on master branch too