I use envoy to deploy my laravel application.
In one of the tasks, I run the yarn command to download my front-end dependencies.
When I run the envoy deployment script, I get: bash: line 7: yarn: command not found. Does anybody know the reason?
Is envoy running as a different user than what was used to install yarn? That can make a difference. Not everything installed globally is globally available to all users.
Now that said.. you can make npm install things globally for all users, but by default it doesn't necessarily do that.
The other way you could solve this would be to check if yarn is available in your envoyer script, and if not have the script install it. That would ensure it's available to envoyer.