sudo apt install composer
执行composer update 报错 查看composer.json "PHPunit/PHPunit": "~5.7"
PHPunit 没有安装
解决办法:
sudo apt-get install PHPunit
将composer.json "PHPunit/PHPunit": "~5.7"
改成:"*"
====================================================================
sudo curl -sS https://getcomposer.org/installer | sudo PHP -d detect_unicode=Off
sudo mv composer.phar /usr/local/bin/composercd /usr/local/bin/
sudo chmod a+x composer
sudo composer self-update
sudo composer config -g repo.packagist composer https://packagist.PHPcomposer.com
http://www.PHPcomposer.com/
http://docs.PHPcomposer.com/00-intro.html#Downloading-the-Composer-Executable
原文链接:https://www.f2er.com/ubuntu/353509.html