Skip to content

Commit b7ec137

Browse files
authored
fix: ignore EROFS errors (#421)
1 parent 3958d26 commit b7ec137

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/Engine.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export class Engine {
152152
throw new UsageError(`This package manager (${packageManager}) isn't supported by this corepack build`);
153153

154154
let lastKnownGoodFile = await getLastKnownGoodFile(`r+`).catch(err => {
155-
if ((err as NodeError)?.code !== `ENOENT`) {
155+
if ((err as NodeError)?.code !== `ENOENT` && (err as NodeError)?.code !== `EROFS`) {
156156
throw err;
157157
}
158158
});

0 commit comments

Comments
 (0)