DenoDDeno
Powered by
ArthursA
Denoβ€’11mo agoβ€’
1 reply
Arthurs

`deno run --cached-only` downloads stuff anyways

Hey there πŸ‘‹
I recently upgraded a project to deno 2.1.10. When starting the server, I noticed that deno would download a bunch of packages.

DENO_DIR=build/cache TZ=UTC deno run --allow-all -- src/server.ts
DENO_DIR=build/cache TZ=UTC deno run --allow-all -- src/server.ts


Which is weird because my dependencies are already in the build/cache folder.

So I added --cached-only

DENO_DIR=build/cache TZ=UTC deno run --cached-only --allow-all -- src/server.ts
DENO_DIR=build/cache TZ=UTC deno run --cached-only --allow-all -- src/server.ts


I was at least expecting an error, but it appears deno is still downloading the dependencies as if the option did not exist.
What am I doing wrong ?
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

Troubleshooting deno.land downloads
andrinheusserAandrinheusser / help
3y ago