From 7710fc578ec94bb9edca551e7d38ab30d8560ecf Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 31 Dec 2021 20:17:17 -0400 Subject: create junction symlinks on windows --- src/upd8.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/upd8.js b/src/upd8.js index 6a0ff088..91cc66df 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -2052,7 +2052,13 @@ function writeSymlinks() { throw error; } } - await symlink(path.resolve(directory), file); + try { + await symlink(path.resolve(directory), file); + } catch (error) { + if (error.code === 'EPERM') { + await symlink(path.resolve(directory), file, 'junction'); + } + } } } -- cgit 1.3.0-6-gf8a5