Ad

Laravel Command Not Found By ZSH On MacOS

- 1 answer

I am getting the error

zsh: command not found: laravel

I tried the other answers from the answered questions but they seem be old and do not work. I am on Mac with macOS Mojave.

I have the following in the ~/.zshrc files

export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/harshamv/.composer/vendor/bin:$PATH"
export PATH="/usr/local/sbin:$PATH"
export PATH="$HOME/.composer/vendor/bin:$PATH"
Ad

Answer

I installed Laravel Globally again and it worked

composer global require laravel/installer
Ad
source: stackoverflow.com
Ad