Skip to content

[BUG] Windows - Deno executable not found (checks HOME, not USERPROFILE, and missing .exe) #208

@mynameistito

Description

@mynameistito

packages/kernel/runtime-deno-subprocess/src/index.ts tries to find a locally installed Deno binary by checking HOME:

const home = process.env.HOME?.trim();
const installedPath = `${home}/.deno/bin/deno`;

On Windows, HOME is usually unset. The correct env var is USERPROFILE, and Deno installs to %USERPROFILE%\.deno\bin\deno.exe (with .exe).

Fix: fall back to USERPROFILE and use the correct Windows path.

Fixed in: packages/kernel/runtime-deno-subprocess/src/index.ts


Identified and fixed with AI assistance.

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