Composer not found error on MacOs Terminal

Viewed 14

To install Laravel on latest macOS Monterey 12.5, I installed HomeBrew, used that to install php, then used instructions on Composer.Org to install composer which installed composer.phar on my current directory.

I added my current directory to PATH. But could not run Composer. Then created a directory /usr/local/composer and did "sudo mv composer.phar .." into that directory, which did move the file. Then created a .zshrc file in my current directory and added both my current directory and /usr/local/composer on permanent PATH.

But I still can't invoke composer. zsh gives me "command not found: composer".

I am very new to this. Am I making noob mistakes? Thank you very much for any pointers.

0 Answers
Related