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 #15

Closed
1 of 5 tasks
thescientist13 opened this issue Aug 8, 2020 · 0 comments · Fixed by #16
Closed
1 of 5 tasks

Error EISDIR: illegal operation on a directory #15

thescientist13 opened this issue Aug 8, 2020 · 0 comments · Fixed by #16
Assignees
Labels
0.1.1 bug Something isn't working
Projects
Milestone

Comments

@thescientist13
Copy link
Owner

Type of Change

  • New Feature Request
  • Improvement / Suggestion
  • Documentation
  • Bug
  • Other (please clarify below)

Summary

Trying to run copy-dots and getting this error

$ npx copy-dots ../../../project-evergreen/repos/greenwood
npx: installed 1 in 1.36s
Validating user directory...
Scanning Files in user directory... /Users/owenbuckley/Workspace/project-evergreen/repos/greenwood
Filtering files in user directory...
Copying filtered files into current directory...
copying file from /Users/owenbuckley/Workspace/project-evergreen/repos/greenwood/.browserslistrc
copying file to /Users/owenbuckley/Workspace/github/repos/copy-dots-demo
{ Error: EISDIR: illegal operation on a directory, copyfile '/Users/owenbuckley/Workspace/project-evergreen/repos/greenwood/.browserslistrc' -> '/Users/owenbuckley/Workspace/github/repos/copy-dots-demo'
    at Object.copyFileSync (fs.js:1724:3)
    at filteredFiles.forEach.file (/Users/owenbuckley/.npm/_npx/52263/lib/node_modules/copy-dots/src/index.js:101:10)
    at Array.forEach (<anonymous>)
    at run (/Users/owenbuckley/.npm/_npx/52263/lib/node_modules/copy-dots/src/index.js:91:19)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at Function.Module.runMain (internal/modules/cjs/loader.js:745:11)
    at findNodeScript.then.existing (/Users/owenbuckley/.nvm/versions/node/v10.15.1/lib/node_modules/npm/node_modules/libnpx/index.js:268:14)
  errno: -21,
  syscall: 'copyfile',
  code: 'EISDIR',
  path:
   '/Users/owenbuckley/Workspace/project-evergreen/repos/greenwood/.browserslistrc',
  dest: '/Users/owenbuckley/Workspace/github/repos/copy-dots-demo' }

Details

Seems related to #13 in that this error happens when not using the work around

export NODE_ENV=developments
@thescientist13 thescientist13 added the bug Something isn't working label Aug 8, 2020
@thescientist13 thescientist13 added this to the MVP milestone Aug 8, 2020
@thescientist13 thescientist13 self-assigned this Aug 8, 2020
@thescientist13 thescientist13 added this to IN PROGRESS in Project 1 Aug 8, 2020
@thescientist13 thescientist13 moved this from IN PROGRESS to IN REVIEW in Project 1 Aug 8, 2020
@thescientist13 thescientist13 moved this from IN REVIEW to DONE in Project 1 Aug 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.1.1 bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

1 participant