Open JosueBCe opened 1 month ago
same problem here
what version of node.js are you on? it may need to be newer. can you try on the latest?
'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
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?
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)