I’m dealing with the $PATH (to know if a command is exists). To check the issue, I’m running
I’m getting different results when I run the app in dev mode (
electron .) and prod mode (I pack the app and run it)
The $PATH in dev mode is way longer than the $PATH in prod mode.
When I run
echo $PATH in the terminal (default or iTerm2) I’m getting the results as the dev mode.
I hope it’s clear enough.