Composer error

Hi,

I want to update from yii 2.0.5 to 2.0.6 and get an composer error:




php composer.phar 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.x-dev requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.

    - yiisoft/yii2 dev-master requires bower-asset/jquery 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.

    - Installation request for yiisoft/yii2 >=2.0.6 -> satisfiable by yiisoft/yii2[2.0.6, dev-master, 2.0.x-dev].


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://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.


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



My composer-file:




{

    "name": "yiisoft/yii2-app-advanced",

    "description": "Yii 2 Advanced Application Template",

    "keywords": ["yii2", "framework", "advanced", "application template"],

    "homepage": "http://www.yiiframework.com/",

    "type": "project",

    "license": "BSD-3-Clause",

    "support": {

        "issues": "https://github.com/yiisoft/yii2/issues?state=open",

        "forum": "http://www.yiiframework.com/forum/",

        "wiki": "http://www.yiiframework.com/wiki/",

        "irc": "irc://irc.freenode.net/yii",

        "source": "https://github.com/yiisoft/yii2"

    },

    "minimum-stability": "dev",

    "require": {

        "php": ">=5.4.0",

        "yiisoft/yii2": ">=2.0.6",

        "yiisoft/yii2-bootstrap": "*",

        "yiisoft/yii2-swiftmailer": "*",

        "yiisoft/yii2-jui": "*",

        "kartik-v/yii2-widgets": "@dev",

        "kartik-v/yii2-grid": "@dev",

        "kartik-v/yii2-detail-view": "@dev",

        "kartik-v/yii2-mpdf": "@dev",

        "kartik-v/yii2-krajee-base": "@dev",

        "kartik-v/yii2-widget-fileinput": "@dev",

        "kartik-v/yii2-widget-activeform": "@dev",

        "kartik-v/yii2-nav-x": "@dev",

        "kartik-v/yii2-sortable-input": "@dev",

        "kartik-v/yii2-export": "@dev",

        "kartik-v/yii2-date-range": "@dev",

        "kartik-v/yii2-checkbox-x": "@dev",

        "amnah/yii2-user": "dev-master",

        "miloschuman/yii2-highcharts-widget": "dev-master"

    },

    "require-dev": {

        "yiisoft/yii2-codeception": "*",

        "yiisoft/yii2-debug": "*",

        "yiisoft/yii2-gii": "*",

        "yiisoft/yii2-faker": "*"

    },

    "config": {

        "process-timeout": 1800

    },

    "extra": {

        "asset-installer-paths": {

            "npm-asset-library": "vendor/npm",

            "bower-asset-library": "vendor/bower"

        }

    }

}




Found the soltution

http://www.yiiframework.com/forum/index.php/topic/62276-yii2-composer-is-broken/

I had exactly the same problem and after much messing about and uninstalling and reinstalling all this stuff. I just cleared the composer cache and it seemed to fix the problem :)


composer clear-cache

Hope this helps someone.

Clear-cache is definitely a life-saver :)