Error: ENOENT: no such file or directory, mkdir '/html'
ehowington opened this issue · comments
Downloaded newest version and cannot run with default config
Error: ENOENT: no such file or directory, mkdir '/html'
[ Error: no such file or directory, mkdir '/html'
] {
errno: -2,
code: 'ENOENT',
syscall: 'mkdir',
path: '/html'
cc @ekeaton
Thanks for the feedback.
Currently, GTFS-to-HTML tries to make an html
directory in whatever path you are running gtfs-to-html
from. If you run it from the system root /
it will throw this error as your user may not have permission to create a folder there.
Try running from a path where your user has permission to create folders: cd ~
I'm going to work on a fix for this to use a temp folder if the current directory isn't somewhere you can write to.
I just published an updated version of GTFS-to-HTML that has a better warning for when you run it in a directory that isn't writable. https://github.com/BlinkTagInc/gtfs-to-html/releases/tag/2.1.9
outstanding - thank you.
I was able to get it up and running higher up in my user folder instead.