Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running on windows 10 #55

Open
JosueBCe opened this issue Jul 11, 2024 · 4 comments
Open

Error when running on windows 10 #55

JosueBCe opened this issue Jul 11, 2024 · 4 comments

Comments

@JosueBCe
Copy link

JosueBCe commented Jul 11, 2024

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
Copy link

same problem here

@steve8708
Copy link
Contributor

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

@bungcip
Copy link

bungcip commented Jul 26, 2024

'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
Copy link

a20185 commented Jul 31, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants