Trying to install composer to get set up with Laravel framework

前端 未结 5 1173
死守一世寂寞
死守一世寂寞 2020-12-23 14:08

I am trying to install composer on my Mac so that I can use the Laravel framework. I successfully downloaded composer through the terminal, and then I moved composer.phar t

5条回答
  •  伪装坚强ぢ
    2020-12-23 14:18

    Make sure that /usr/local/bin is in your $PATH

    $ echo $PATH
    

    Then execute

    $ curl -sS https://getcomposer.org/installer | php
    $ sudo mv composer.phar /usr/local/bin/composer
                                           ^^^^^^^^ you didn't rename it 
    

    For reference see

    • Installing composer.phar globally on *nix

提交回复
热议问题