我正在尝试使用编辑器创建一个yii2项目并收到此错误
我正在使用ubuntu 16.04 LTS
错误: https://pastebin.com/XgSt9Z2B
root@xuf-SATELLITE-C50t-A:/var/www/html/suppare# composer create-project --prefer-dist yiisoft/yii2-app-basic suppare
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Installing yiisoft/yii2-app-basic (2.0.14)
- Installing yiisoft/yii2-app-basic (2.0.14): Loading from cache
Created project in suppare
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- codeception/phpunit-wrapper 6.0.2 requires sebastian/diff ^3.0 -> satisfiable by sebastian/diff[3.0.0].
- codeception/phpunit-wrapper 7.0.0 requires sebastian/diff ^3.0 -> satisfiable by sebastian/diff[3.0.0].
- codeception/phpunit-wrapper 7.0.1 requires sebastian/diff ^3.0 -> satisfiable by sebastian/diff[3.0.0].
- codeception/phpunit-wrapper 7.0.2 requires sebastian/diff ^3.0 -> satisfiable by sebastian/diff[3.0.0].
我在上述错误之前错过了php-mbstring的扩展错误所以运行此命令现在我得到了上述错误。作曲家创建了一个不完整的项目,错误没有显示在浏览器上 sudo apt-get install php-mbstring
答案 0 :(得分:3)
sudo apt-get install phpunit
它解决了问题