From b7ec137210efd35c3461321b6434e3e13a87d42f Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Fri, 8 Mar 2024 10:39:08 +0200 Subject: [PATCH] fix: ignore `EROFS` errors (#421) --- 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; } });