fix(core): catch errors when cleaning up tmp dir during migrate

This commit is contained in:
Jason Jean 2021-06-25 13:28:29 -04:00
parent 9a22add92d
commit 632d2f72ae

View File

@ -459,7 +459,12 @@ function createFetcher(packageManager: PackageManager) {
version: resolvedVersion,
};
}
try {
removeSync(dir);
} catch {
// It's okay if this fails, the OS will clean it up eventually
}
}
return cache[`${packageName}-${packageVersion}`];
};