Node js symlink failure in windows
Anonymous
I am trying to create a symlink with node js which comes in gulp.js file. When I tried it out in Ubuntu it is working fine but when I tried it out in windows it is throwing an error as
Error: EPERM: operation not permitted, symlink
Please find the code regarding symlink in gulp.js below
function linkDirs(src, dst) {
return new Promise(function (resolve, reject) {
fs.symlink(src, dst, function (err) {
if (err && err.code !== 'EXIST') {
reject(err)
} else {
resolve()
}
})
})
}
Can anyone help me out in finding the solution for this? Thanks in advance.