How to run composer from anywhere?

前端 未结 10 1478
名媛妹妹
名媛妹妹 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:14

    composer.phar can be ran on its own, no need to prefix it with php. This should solve your problem (being in the difference of bash's $PATH and php's include_path).

提交回复
热议问题