diff --git a/src/cache.js b/src/cache.js index ad2de7ac..c25844b8 100644 --- a/src/cache.js +++ b/src/cache.js @@ -26,7 +26,9 @@ export class CacheObject { } async invalidate() { - fs.unlinkSync(this.path); + if (fs.existsSync(this.path)) { + fs.unlinkSync(); + } } }