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

Command exec: : not found #6

Closed
arvcork opened this issue Oct 29, 2023 · 2 comments
Closed

Command exec: : not found #6

arvcork opened this issue Oct 29, 2023 · 2 comments

Comments

@arvcork
Copy link
Contributor

arvcork commented Oct 29, 2023

Hi,

I am currently experiencing an issue in a fresh Laravel install with this.

I had a previous issue whereby tsx wasn't installed with the npm package, but I manually installed that.

The currently issue I'm having is The command is not found.

What's strange is, if I dump out the command line and copy it directly into my terminal - it seems to be working fine!

The command \"\"\" '/{ABSOLUTE_PATH}/node_modules/.bin/tsx' '/{ABSOLUTE_PATH}/vendor/maantje/react-email/src/../render.tsx' '/{ABSOLUTE_PATH}/resources/emails/reset-password' '{\"token\":\"emitted\",\"user\":{\"id\":30,\"name\":\"Oda Bailey\",\"email\":\"email@email.com\",\"email_verified_at\":\"2023-10-29T21:25:28.000000Z\",\"created_at\":\"2023-10-29T21:25:28.000000Z\",\"updated_at\":\"2023-10-29T21:25:28.000000Z\"},\"connection\":null,\"queue\":null,\"chainConnection\":null,\"chainQueue\":null,\"chainCatchCallbacks\":null,\"delay\":null,\"afterCommit\":null,\"middleware\":[],\"chained\":[]}'\" failed.\n\nExit Code: 127(Command not found)\n\nWorking directory: /{ABSOLUTE_PATH}\n\nOutput:\n================\n\n\nError Output:\n================\nsh: line 0: exec: : not found\n

Please understand, I have emitted out some of the directories however these are absolute paths which are valid.

@arvcork
Copy link
Contributor Author

arvcork commented Oct 29, 2023

Interesting enough, after some debugging and going into the package this is because:

(new ExecutableFinder())->find('node')

is resolving to null, this is because node is installed with homebrew on my machine. Overriding this and setting to /opt/homebrew/bin/node allows the email to send / work.

@arvcork
Copy link
Contributor Author

arvcork commented Oct 29, 2023

#7

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

1 participant