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 creating output files #8

Open
sliceofbytes opened this issue Aug 17, 2023 · 1 comment
Open

Error creating output files #8

sliceofbytes opened this issue Aug 17, 2023 · 1 comment

Comments

@sliceofbytes
Copy link

Error creating output file on windows.

H:
λ npx hero run --number_of_colors 4 Colors.heroml
[ 'number_of_colors' ]
████████████████████████████████████████ 100% | ETA: 0s | 100/100
Error: Error: ENOENT: no such file or directory, open 'H:\outputs\response_2023-08-17T04:07:07.666Z.json.md'
at Object.openSync (node:fs:600:3)
at Object.writeFileSync (node:fs:2221:35)
at writeMarkdownOutput (C:\Users\slice\AppData\Roaming\npm\node_modules\heroml\dist\cli.js:131:18)
at Object. (C:\Users\slice\AppData\Roaming\npm\node_modules\heroml\dist\cli.js:204:17)
at Generator.next ()
at fulfilled (C:\Users\slice\AppData\Roaming\npm\node_modules\heroml\dist\cli.js:6:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
errno: -4058,
syscall: 'open',
code: 'ENOENT',
path: 'H:\outputs\response_2023-08-17T04:07:07.666Z.json.md'
}

I've checked folder permissions and tried it in a couple different places, also tried -o etc..

@kingmeers
Copy link
Contributor

Hm that's odd! I vaguely remember creating the outputs/ directory if it doesn't exist in the code, does outputs/ exist in the directory you're running this script?

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

2 participants