Deno : error: Uncaught (in promise) Error: attempt to write a readonly database: Error code 8: Attempt to write a readonly database

你好,我是无能。
出现了一些错误。
背景
在执行deno task *的目录中,更改了所有权(使用chown)后发生了。
错误
error: Uncaught (in promise) Error: attempt to write a readonly database: Error code 8: Attempt to write a readonly database
const cache = await caches.open("lume_remote_files");
^
at CacheStorage.open (ext:deno_cache/01_cache.js:46:27)
at read (https://deno.land/x/lume@v2.3.3/core/utils/read.ts:59:30)
at https://deno.land/x/lume@v2.3.3/deps/svg2png.ts:7:20
然后,即使执行ls -la也找不到.cache,即使删除~/.cache/deno/,这个错误仍然出现...
解决方案
经过调查,Deno 似乎也在/tmp/deno_cache/中创建缓存。这是 RAM 内存缓存。
这个缓存因为所有权问题发生了冲突,导致它认为“你不是我认识的人!”
因此,删除它
rm -rf /tmp/deno_cache
这样就解决了!