mirror of https://github.com/nodejs/corepack.git
fix: ignore `EROFS` errors (#421)
This commit is contained in:
parent
3958d26462
commit
b7ec137210
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue