Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
link(packagePath, done) {
const packageBin = path.join(packagePath, 'node_modules', '.bin')
symlinkDir(rootBin, packageBin).then(
() => done(null, true),
(err) => {
console.warn(
`Cannot create symlink '${packageBin}' (there is a directory there probably).`
)
done(err)
}
)
},
npm(cwd, done) {