Skip to content

spawn("npm", ...) fails on Windows — missing shell: true or .cmd suffix #18

@MadhushaPrasad

Description

@MadhushaPrasad

Description:
installDependencies.ts uses spawn("npm", ["install"], { cwd }). On Windows, the npm executable is npm.cmd, not npm. Calling spawn without shell: true will throw an ENOENT error on Windows, making dependency installation completely broken for Windows users.

File: installDependencies.ts

Expected: Pass { shell: true } in the spawn options, which works cross-platform on macOS, Linux, and Windows without needing OS detection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions