DenoDDeno
Powered by
j3plJ
Denoβ€’2y agoβ€’
1 reply
j3pl

"Too many open files" running an Astro app with Deno 2.0

Hi all, I just tried to run a (fairly small) Astro app in Deno 2.0 by seeing if it could be as simple as:
deno install
deno install
followed by
deno run dev
deno run dev
. It looks like it's starting up as normal (it shows the usual "astro v4.15.12 ready in 351 ms" and the URLs it's listening on) but then dies with the following message:
14:21:11 watching for file changes...
error: Uncaught Error: Too many open files (os error 24)
    at new FsWatcher (ext:runtime/40_fs_events.js:24:17)
    at Object.watchFs (ext:runtime/40_fs_events.js:74:10)
    at ext:deno_node/_fs/_fs_watch.ts:57:21
    at callback (ext:deno_web/02_timers.js:68:7)
    at eventLoopTick (ext:core/01_core.js:210:13)
14:21:11 watching for file changes...
error: Uncaught Error: Too many open files (os error 24)
    at new FsWatcher (ext:runtime/40_fs_events.js:24:17)
    at Object.watchFs (ext:runtime/40_fs_events.js:74:10)
    at ext:deno_node/_fs/_fs_watch.ts:57:21
    at callback (ext:deno_web/02_timers.js:68:7)
    at eventLoopTick (ext:core/01_core.js:210:13)

Any tips on how to address this?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Does Deno-bindgen work with Deno 2.0?
WingZer0oWWingZer0o / help
17mo ago
Deno 2.0 can't find .pem files even with --allow-read?
SwyfteySSwyftey / help
17mo ago