Bugs when using composer install yii2

$ sudo composer create-project yiisoft/yii2-app-advanced advanced 2.0.3

Zhes-MBP:htdocs zhexiao$ sudo composer create-project yiisoft/yii2-app-advanced advanced 2.0.3

Installing yiisoft/yii2-app-advanced (2.0.3)

  • Installing yiisoft/yii2-app-advanced (2.0.3)

    Downloading: 100%

Created project in advanced

Loading composer repositories with package information

Installing dependencies (including require-dev)

Your requirements could not be resolved to an installable set of packages.

Problem 1

- yiisoft/yii2 2.0.3 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.


- yiisoft/yii2 2.0.2 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.


- yiisoft/yii2 2.0.1 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.


- yiisoft/yii2 2.0.0 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.


- Installation request for yiisoft/yii2 * -> satisfiable by yiisoft/yii2[2.0.0, 2.0.1, 2.0.2, 2.0.3].

Potential causes:

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

Fixed :

solved. need to install the Composer Asset Plugin first:

php composer.phar global require "fxp/composer-asset-plugin:1.0.0"

Never Mind…