2016-04-23 00:02:24 13550次浏览 4条回答 1 悬赏 10 金钱

安装后访问requirements.php报错,提示没有文件夹,查看了下确实没有,通过composer update之后也没有 composer版本1.0.2
完全按照官网手册进行安装的,大神帮忙给看一下

xindeMacBook-Air:basic xin$ composer update
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 2.0.7 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable -> no matching package found.
    - yiisoft/yii2 2.0.6 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
    - yiisoft/yii2 2.0.5 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
    - Installation request for yiisoft/yii2 >=2.0.5 -> satisfiable by yiisoft/yii2[2.0.5, 2.0.6, 2.0.7].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

最佳答案

  • 回答于 2016-04-23 12:10 举报

    将composer卸载重装,再安装Yii2.0

    1 条回复
    回复于 2016-04-23 12:56 回复

    重新安装还是出现问题了

    xindeMacBook-Air:~ xin$ composer global require "fxp/composer-asset-plugin:1.0.2"
    Changed current directory to /Users/xin/.composer
    ./composer.json has been updated
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
      - Installing fxp/composer-asset-plugin (v1.0.2)
        Downloading: 100%         
    
    The "fxp/composer-asset-plugin" plugin requires composer-plugin-api 1.0.0, this *WILL* break in the future and it should be fixed ASAP (require ^1.0 for example).
    
    Fatal error: Call to undefined method Fxp\Composer\AssetPlugin\Package\Version\VersionParser::parseLinks() in /Users/xin/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php on line 272
    
  • 回答于 2016-04-27 08:47 举报

    先执行这个:

    composer global require "fxp/composer-asset-plugin:~1.1.1" 
    
    觉得很赞
  • 回答于 2016-04-27 10:53 举报

    你直接就下载个安装包的了

您需要登录后才可以回答。登录 | 立即注册
gx4852
助理

gx4852 北京

注册时间:2016-04-22
最后登录:2017-01-13
在线时长:10小时26分
  • 粉丝0
  • 金钱35
  • 威望0
  • 积分135

热门问题