Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: EISDIR: illegal operation on a directory, symlink #16

Closed
jluterek opened this issue Apr 21, 2020 · 1 comment
Closed

Error: EISDIR: illegal operation on a directory, symlink #16

jluterek opened this issue Apr 21, 2020 · 1 comment

Comments

@jluterek
Copy link
Contributor

I am getting this error when using the plugin. This happens when the package already exists in node_modules and the plugin attempts to create a symlink anyway.

The error originates from this code:

async function link (target, f, type) {
  await fs.ensureDir(path.dirname(f))
  await fs.symlink(target, f, type)
    .catch(e => {
      if (e.code === 'EEXIST') {
        return
      }
      throw e
    })
}
@martin-css
Copy link
Contributor

Now fixed in v0.9.0, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants