Windows (but not Unix) can use
junctions.
fs.symlink()
allows creating these.
Creating regular symlinks on Windows will most likely fail because it requires a "create symlink" permission which by default is off for non-admins. Also some file systems like FAT do not allow symlinks. As a consequence it is more cross-platform to copy files instead of symlinking them.
Neither junctions nor hard links
(fs.link()
)
require permissions on Windows.
Copy files instead of symlinking them.