Skip to content

Windows npx command resolution failure breaks tsx/ts-node fallback #74

@Perlmint

Description

@Perlmint

gaji version

1.1.0

Installation method

npm (npx gaji)

Operating system

Windows

Bug description

On Windows, npx is not exposed as a plain executable but instead as npx.cmd and npx.ps1. As a result, Command::new("npx") fails to resolve the command and returns an error.
Using Command::new("npx.cmd") works correctly on Windows.

Steps to reproduce

  1. Run gaji build with QuickJS incompatible workflow code on Windows

Expected behavior

tsx/ts-node fallback runs without problem

Actual behavior

Neither tsx nor ts-node is available

Workflow file (if applicable)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions