I\'m trying to install Yii2 via composer:
composer global require \"fxp/composer-asset-plugin:~1.1.1\"
composer create-project --prefer-dist yiisoft/yii2-app
You can try the newer version:
composer global require "fxp/composer-asset-plugin:^1.2.0"
then:
composer create-project --prefer-dist yiisoft/yii2-app-basic basic
You can download Yii2 by Install from an Archive File. By this way you won't need to handle Bower issue.
Further, if you need to update composer without handling Bower, you can require yidas/yii2-composer-bower-skip before yiisoft/yii2 in composer.json file:
"require": {
"php": ">=5.4.0",
"yidas/yii2-composer-bower-skip": "~2.0.0",
"yiisoft/yii2": "~2.0.5",
"yiisoft/yii2-bootstrap": "~2.0.0"
}
Instead, if you want to create yii2 project without bower-asset issue:
yidas/yii2-app-basic:
composer create-project yidas/yii2-app-basicyidas/yii2-app-advanced:
composer create-project yidas/yii2-app-advanced
From Yii 2.0.13, it used Asset-Packagist solution instead of
fxp/composer-asset-plugin