#[Error: ENOENT: no such file or

1 messages · Page 1 of 1 (latest)

jovial wraith
#

You could try using the complete path 🤔

const dirPath = path.join(__dirname, 'target-dir-that-relative-to-current-script');
manic olive
#

That doesn't work

manic olive
jovial wraith
#

Is this directory present? you can try creating it before attempting to read If it doesn't exist

manic olive
#

It definately exists

#

It works on my dev server perfectly