composer update error for 2.0.6

Hi Guys. I ran composer update and got the following error:








  [UnexpectedValueException]

  Could not parse version constraint <=2.*: Invalid version string "2.*"




Here is my entire composer.json:







{

    "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": "stable",

    "require": {

        "php": ">=5.4.0",

        "yiisoft/yii2": "*",

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

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

        "kartik-v/yii2-social": "dev-master",

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

        "fortawesome/font-awesome": "4.2.0",

        "kartik-v/yii2-widgets": "*",

        "yiisoft/yii2-imagine": "~2.0.0"

    },

    "require-dev": {

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

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

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

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

        "yiisoft/yii2-jui": "*"

    },

    "config": {

        "process-timeout": 1800

    },

    "extra": {

        "asset-installer-paths": {

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

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

        }

    }

}



Note that I’m using the advanced template. The last successful composer update I did was on version 2.0.4. Any idea of why it’s not working?

to fix this, do




composer global update #this will update the fxp which causes your constraint issue

composer update 



That worked, thanks!