How to run composer from anywhere?

前端 未结 10 1470
名媛妹妹
名媛妹妹 2020-12-04 07:51

I have just installed composer in my /usr/bin folder, so when from that folder I run php composer.phar I get the help info about composer. But, whe

10条回答
  •  温柔的废话
    2020-12-04 08:11

    Simply run this command for installing composer globally

    curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
    

提交回复
热议问题