Skip to content

cavemem start fails with spawn EFTYPE on Windows #11

@Fundryi

Description

@Fundryi

When it refers to "I" it means Claude did :,)

Fresh global install on Windows. Install + cavemem status work. cavemem start fails:

cavemem start
cavemem error: spawn EFTYPE
Same error via cmd /c cavemem start and node dist/index.js start — not the shim. Hooks also never auto-start the worker (same error on every hook spawn).

Setup:
Windows 10 (native, no WSL)
Node v23.11.0
cavemem 0.1.3 (global npm)

Cause:
Worker spawn does spawn(resolveCliPath(), ["worker", "run"], ...) where resolveCliPath() returns the raw .js path. Windows CreateProcess can't exec .js directly (no shebang honoring) → EFTYPE. Three call sites in dist/index.js do this. Linux/macOS unaffected.

Suggested fix: spawn with process.execPath + script path, or pass { shell: true } on win32.
Possibly related to #3 both are Windows spawn/bundle issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions