Skip to content

Error: spawn start ENOENT #945

@emmanuelesperanca

Description

@emmanuelesperanca

Description

I kept getting the Error: spawn start ENOENT every time i tried to test the agent in dev mode using "agentcore dev" command line.
I managed to fix it, more details on "Additional Context"

Steps to Reproduce

  1. agentcore create
  2. cd {agentcore folder}
  3. agentcore dev

Expected Behavior

To open the HTML on the browser, so i can chat with the agent locally

Actual Behavior

Giving the error "Error: spawn start ENOENT" and finishing the test

CLI Version

0.9.1

Operating System

Windows

Additional Context

I managed to fix it by going into C:\Users{myuser}\AppData\Roaming\npm\node_modules@aws\agentcore\dist\cli\index.mjs
On the line 1053 and the code tried to use the code spawn("start", [url])
I corrected it replacing the code with [spawn("cmd", ["/c", "start", url])]

Metadata

Metadata

Assignees

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