From a7794b4c16a1a9ec725a6b3312b10edbd6df4e7d Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Fri, 8 Mar 2024 09:27:23 +0100 Subject: [PATCH] fix: ignore `EROFS` errors --- sources/Engine.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/Engine.ts b/sources/Engine.ts index 325563f30..d1c821457 100644 --- a/sources/Engine.ts +++ b/sources/Engine.ts @@ -152,7 +152,7 @@ export class Engine { throw new UsageError(`This package manager (${packageManager}) isn't supported by this corepack build`); let lastKnownGoodFile = await getLastKnownGoodFile(`r+`).catch(err => { - if ((err as NodeError)?.code !== `ENOENT`) { + if ((err as NodeError)?.code !== `ENOENT` && (err as NodeError)?.code !== `EROFS`) { throw err; } });