sudo apt install composer
执行composer update 报错 查看composer.json "phpunit/phpunit": "~5.7"
phpunit 没有安装
解决办法:
sudo apt-get install phpunit
将composer.json "phpunit/phpunit": "~5.7"
改成:composer.json "phpunit/phpunit": "*"
====================================================================
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