j3pl
j3pl3mo ago

"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 followed by 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?
1 Reply
fro.profesional
fro.profesional3mo ago
If u install with other package manager like pnpm/npm and then run with deno, the same thing happends?

Did you find this page helpful?