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

💩 Oops, something went wrong: Error: EISDIR: illegal operation on a directory, read #170

Open
detj opened this issue Oct 9, 2018 · 0 comments

Comments

@detj
Copy link

detj commented Oct 9, 2018

Getting this error after installing theo using npm install -g theo. Tried it using node v6.14.4, node 8.12.0, node 9.11.2, node 10.11.0.

$ theo --version
💩  Oops, something went wrong: Error: EISDIR: illegal operation on a directory, read

update
I did some digging around. Turns out, the cli expects a source file as its first argument always. When that's not provided, like in case of theo --version(this command doesn't exist, I now learned) it converts an undefined value to '' and then to process.cwd(). Throws this error when it tries to run a file operation on a directory.

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

1 participant