Skip to content

Commit e1f4e03

Browse files
committed
fix: symbol link creation issue for test tool install
1 parent b1810e8 commit e1f4e03

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/fx-core/src/component/deps-checker/util/fileHelper.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ export async function unlinkSymlink(linkFilePath: string): Promise<void> {
1414
const stat = await fs.lstat(linkFilePath);
1515
if (stat.isSymbolicLink()) {
1616
await fs.unlink(linkFilePath);
17+
} else {
18+
// For regular file or directory, remove it
19+
await fs.remove(linkFilePath);
1720
}
1821
} catch (error: unknown) {
1922
const statError = error as { code?: string };

0 commit comments

Comments
 (0)