BuilderIO / micro-agent

An AI agent that writes (actually useful) code for you
https://www.builder.io/blog/micro-agent
MIT License
2.61k stars 206 forks source link

Error when running on windows 10 #55

Open JosueBCe opened 1 month ago

JosueBCe commented 1 month ago

s.js:1 import {addAbortListener} from 'node:events'; ^^^^^^^^^^^^^^^^ SyntaxError: The requested module 'node:events' does not provide an export named 'addAbortListener' at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21) at async ModuleJob.run (node:internal/modules/esm/module_job:189:5) at async Promise.all (index 0) at async ESMLoader.import (node:internal/modules/esm/loader:530:24) at async loadESM (node:internal/process/esm_loader:91:5) at async handleMainPromise (node:internal/modules/run_main:65:12)

mertdemir0 commented 1 month ago

same problem here

steve8708 commented 1 month ago

what version of node.js are you on? it may need to be newer. can you try on the latest?

bungcip commented 1 month ago

'addAbortListener' added in version v20.5.0, v18.18.0 (https://nodejs.org/api/events.html#eventsaddabortlistenersignal-listener) So, you need to update the node version.

I think micro-agent need to add engine field in package.json to specifiy minimum node version so it cannot be installed on old node version

a20185 commented 1 month ago
image

I am really confused.In README, it was emphasised that micro-agent supports Node V14 or later.However I've tried v14.18.2 、v16.16.0、v18.4.0,none of the versions is supported.

If it only supports Node V20+, why not modify your README?