π© Oops, something went wrong: Error: EISDIR: illegal operation on a directory, read
detj opened this issue Β· comments
Debjeet Biswas commented
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.