Trying to install composer to get set up with Laravel framework

前端 未结 5 1174
死守一世寂寞
死守一世寂寞 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:33

    for mac os x Mavericks and Yosemite El capitan

    Change

    sudo mv composer.phar /usr/local/bin/composer
    

    To

    sudo mv composer.phar /usr/bin/composer
    

    Now if you just write composer in terminal, it will show you all available commands

    Then "if running MAMP" navagate you htdocs folder and run

    composer create-project laravel/laravel laratest

    Hope that helps

提交回复
热议问题