diff options
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-x | src/upd8.js | 8 |
1 files changed, 7 insertions, 1 deletions
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'); + } + } } } |