Skip to content

Bug: agentcore dev fails with [TsAgent] Failed to start: spawn npx ENOENT on Windows #1849

Description

@ravindrasinghshah

Description

Running agentcore dev on Windows encounters a spawn npx ENOENT error when attempting to launch the local TsAgent dev server.

Steps to Reproduce

  1. Install AgentCore CLI on Windows using NVM for Windows.
  2. Create a TypeScript agent project using agentcore create.
  3. Run agentcore dev.

Expected Behavior

The local development server should start successfully and compile/run the agent using npx.

Actual Behavior

The server fails to start with the error [TsAgent] Failed to start: spawn npx ENOENT because Node child_process spawning does not append .cmd or run within a shell context on Windows.
Image

CLI Version

No response

Operating System

Windows

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions