@HParker is right, the only way to reproduce it is following these steps:
- Run
elm-make
and let it install all the dependencies
- Remove
elm-package.json
file
- Run
elm-make
again
If it's not your case you can debug what's going using strace
, e. g.
strace -yfv elm-make 2>&1 | grep elm-package.json
Example output:
[pid 32319] openat(AT_FDCWD, "elm-package.json", O_RDONLY|O_NOCTTY|O_NONBLOCK) = -1 ENOENT (No such file or directory)
[pid 32319] write(2<pipe:[427229]>, "elm-package.json: openBinaryFile"..., 76elm-package.json: openBinaryFile: does not exist (No such file or directory)) = 76
If it tries to open elm-package.json
in current working directory you will see AT_FDCWD
variable, if not you should see the full path.