As the title states, I'm getting an ENOENT error on a binary file that is definitely there. The file is titled main, and it's permissions are correct. I have tried the following with no luck:
-
path.join(process.cwd(), '/api/main');
-
path.join("."+process.cwd(), '/api/main');
-
'var/task/api/main'
-
'./api/main'
-
'./main/'
I've also tried all the above inside and outside of the api directory and changed the root of the deployment accordingly.
Any help would be appreciated.
Thanks!