bagerenB
Denoβ€’2y agoβ€’
3 replies
bageren

Running with --cached-only not working

First I cache all dependencies of my typescript file:

deno cache --lock=deno.lock --lock-write server.ts

Then I try to execute the file using
--cached-only
:

deno run --cached-only --allow-net --allow-read --allow-sys --allow-env --allow-run server.ts

Then I get e.g. the following error:

error: Error getting response at https://registry.npmjs.org/@aws-sdk/client-rds-data for package "@aws-sdk/client-rds-data": An npm specifier not found in cache: "@aws-sdk/client-rds-data", --cached-only is specified.

Why isn't @aws-sdk/client-rds-data cached by the first command if it's needed when I run server.ts?
Was this page helpful?