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; } });