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

Fatal error: EISDIR, illegal operation on a directory #2

Closed
binarykitchen opened this issue Nov 2, 2013 · 16 comments
Closed

Fatal error: EISDIR, illegal operation on a directory #2

binarykitchen opened this issue Nov 2, 2013 · 16 comments
Assignees
Labels

Comments

@binarykitchen
Copy link

What does this error mean and how could it happen?

@eoftedal
Copy link

eoftedal commented Nov 2, 2013

Seems it's trying to read a directory as a file, from what I can find online about that error.

@binarykitchen
Copy link
Author

Yeah but the problem is, it does not say which directory. Even when I enable --verbose, there is no hint at all which directory. Do you think you could wrap the code in a try-catch block and add more debug output for the verbose mode?

@eoftedal
Copy link

eoftedal commented Nov 3, 2013

@binarykitchen Would you mind trying the new version, and see if that helps?

@phun-ky
Copy link

phun-ky commented Nov 3, 2013

@binarykitchen what OS are you running? Node version? Npm version?

@binarykitchen
Copy link
Author

@eoftedal Ah, with your latest version 0.1.12 I do not have that error anymore. All good now. What did you change?

@phun-ky OS X 10.9 and this:

$ node -v
v0.10.21
$ npm -v
1.3.11

@eoftedal
Copy link

eoftedal commented Nov 3, 2013

@binarykitchen It now checks whether or not a path is a file before trying to open it. I think the former version would fail if a directory was named .js

@binarykitchen
Copy link
Author

Sweet, thx guys

@eoftedal
Copy link

eoftedal commented Nov 4, 2013

@binarykitchen Thank you for reporting

@yinrong
Copy link

yinrong commented Jul 16, 2015

it's still happening

@SaitejaP
Copy link

SaitejaP commented Aug 5, 2015

Yeah! I am facing this error too. I followed http://paularmstrong.github.io/swig/docs/tags/#include

@eoftedal
Copy link

eoftedal commented Aug 5, 2015

Anything special about the directory it fails on?

@SaitejaP
Copy link

SaitejaP commented Aug 7, 2015

I am extremely sorry. I thought to post it in one repo but by mistake,
unintentionally posted here. Please remove my post or let me know how can I
remove it myself.
On 06-Aug-2015 12:12 am, "Erlend Oftedal" notifications@github.com wrote:

Anything special about the directory it fails on?


Reply to this email directly or view it on GitHub
#2 (comment).

@FrankV01
Copy link

For what it's worth, I received the error message when spaces were in my path... Quoting the path fixed the error. Not sure if this is others' issue but it's worth trying....

@eladcandroid
Copy link

It was happend for me too.. I just saw that package.json referenced to a package in a relative directory that doesn't exist and fixed it..

@kozmic kozmic self-assigned this Nov 9, 2016
@mikepsinn
Copy link

I got this error when there was a symlink in the file path that I was copying from. One I removed the symlink, it worked.

@yacxn
Copy link

yacxn commented Mar 29, 2018

Strange I'm still getting this error two years later!

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

No branches or pull requests

10 participants