2017-12-27 17:35:19 2233次浏览 1条回答 0 悬赏 20 金钱

执行composer create-project yiisoft/yii2-app-advanced advanced 2.0.13 报如下错误

composer global require "fxp/composer-asset-plugin:^1.4.0"

Changed current directory to /Users/chenqi/.composer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Writing lock file
Generating autoload files

composer create-project yiisoft/yii2-app-advanced app
Installing yiisoft/yii2-app-advanced (2.0.13)
  - Installing yiisoft/yii2-app-advanced (2.0.13): Downloading (100%)
Created project in studio_app
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
    - yiisoft/yii2-gii 2.0.6 requires phpspec/php-diff >=1.0.2 -> satisfiable by phpspec/php-diff[dev-master, 1.0.x-dev] but these conflict with your requirements or minimum-stability.
    - yiisoft/yii2-gii 2.0.5 requires phpspec/php-diff >=1.0.2 -> satisfiable by phpspec/php-diff[dev-master, 1.0.x-dev] but these conflict with your requirements or minimum-stability.
    - yiisoft/yii2-gii 2.0.4 requires phpspec/php-diff >=1.0.2 -> satisfiable by phpspec/php-diff[dev-master, 1.0.x-dev] but these conflict with your requirements or minimum-stability.
    - yiisoft/yii2-gii 2.0.3 requires phpspec/php-diff >=1.0.2 -> satisfiable by phpspec/php-diff[dev-master, 1.0.x-dev] but these conflict with your requirements or minimum-stability.
    - yiisoft/yii2-gii 2.0.2 requires phpspec/php-diff >=1.0.2 -> satisfiable by phpspec/php-diff[dev-master, 1.0.x-dev] but these conflict with your requirements or minimum-stability.
    - yiisoft/yii2-gii 2.0.1 requires phpspec/php-diff >=1.0.2 -> satisfiable by phpspec/php-diff[dev-master, 1.0.x-dev] but these conflict with your requirements or minimum-stability.
    - yiisoft/yii2-gii 2.0.0 requires phpspec/php-diff >=1.0.2 -> satisfiable by phpspec/php-diff[dev-master, 1.0.x-dev] but these conflict with your requirements or minimum-stability.
    - Installation request for yiisoft/yii2-gii ~2.0.0 -> satisfiable by yiisoft/yii2-gii[2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6].
    

这个什么情况
安装前执行过 composer global require "fxp/composer-asset-plugin:~1.4.0"

下载下来项目中没有vendor目录

  • 回答于 2017-12-28 10:21 举报

    完整版

    composer create-project yiisoft/yii2-app-advanced advanced 2.0.9

    基础版

    composer create-project yiisoft/yii2-app-basic basic 2.0.9

    完整版下载完成后,进入advanced,执行init初始化

您需要登录后才可以回答。登录 | 立即注册
acking
总监

acking 上海

注册时间:2012-05-16
最后登录:2024-05-25
在线时长:65小时55分
  • 粉丝13
  • 金钱2565
  • 威望0
  • 积分3215

热门问题