ubuntu 16.04 composer安装

sudo apt install composer

执行composer update 报错 查看composer.json "phpunit/phpunit": "~5.7"

phpunit 没有安装

ubuntu 16.04 composer安装_第1张图片

解决办法:

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/composer
cd /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

你可能感兴趣的:(Ubuntu,Ubuntukyli)