I am trying to install Composer globally but I get an error when I do
sudo mv composer.phar /usr/local/bin/composer
The error reads
mv: composer.phar: No such file or directory
When I try and instal Laravel
composer global require laravel/installer
And after I try to run
Laravel
I get
zsh: command not found: laravel
After composer is installed, I used the following command to create a alias for the composer file. So now its running globally.
alias composer='/usr/local/bin/composer'
Now can try to run
composer
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With