📅  最后修改于: 2022-03-11 14:47:37.838000             🧑  作者: Mango
you need to first remove the composer
->sudo apt-get remove composer
and then type the below command to install composer globally
->sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
for more info :
click on the link below