# Fix ChildProcess.spawn failing on Windows for \.cmd shims \(\#495\) · screen/t3code-personal

[View on GitCafe](https://git.cafe/screen/t3code-personal/commit/b7f954a9041ee4524552ad0993e8b7711c86ff8a)

Repository: [screen/t3code-personal](https://git.cafe/screen/t3code-personal)

Visibility: public

Requested revision: b7f954a9041ee4524552ad0993e8b7711c86ff8a

Requested commit: b7f954a9041ee4524552ad0993e8b7711c86ff8a

Commit: b7f954a9041ee4524552ad0993e8b7711c86ff8a

Tree: 413ab878a799ca8d54867e68c02f178ebbd428c8

Author: \(CJ\) Chukwudi Nwobodo

Committer: GitHub

## Message

```
Fix ChildProcess.spawn failing on Windows for .cmd shims (#495)

* fix(scripts): enable shell mode on Windows for .cmd shim resolution

On Windows, tools like `bun`, `npm`, `turbo`, and `bunx` are installed
as `.cmd` shims. Node's `child_process.spawn` cannot resolve these
without `shell: true`, causing `PlatformError: NotFound` on fresh
builds where there is no Turbo cache.

Add `shell: process.platform === "win32"` to all ChildProcess.make
calls in cli.ts, dev-runner.ts, and build-desktop-artifact.ts.

Closes #474

* docs: add comments explaining Windows shell spawn requirement

* docs: add shell spawn comments to remaining call sites
```

## Parents

- [a20815ece6ea877a2b82072339f4bced98d757f7](https://git.cafe/screen/t3code-personal/commit/a20815ece6ea877a2b82072339f4bced98d757f7?format=markdown)

[Source at this commit](https://git.cafe/screen/t3code-personal/tree/b7f954a9041ee4524552ad0993e8b7711c86ff8a?format=markdown)
