zsh: command not found: laravel (Mac OS) - Error Fix

5 months ago | Author: Thaha

If you are getting this error when trying to install Laravel, then you have to do the following steps.

  1. Type open ~/.bash_profile in terminal
  2. A text file will open. At the end of the file, add the following line of code - export PATH="$HOME/.composer/vendor/bin:$PATH".
  3. Save the file and close it.
  4. Now Laravel installer will work.