Problem with composer

HI i run this command :


composer create-project --prefer-dist yiisoft/yii2-app-advanced  ricordamelo_yii2




Installing yiisoft/yii2-app-advanced (2.0.11)

  - Installing yiisoft/yii2-app-advanced (2.0.11): Loading from cache

Created project in ricordamelo_yii2

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.9 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> no matching package found.

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

    - 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.11.2 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> no matching package found.

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

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

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

    - Installation request for yiisoft/yii2 ~2.0.6 -> satisfiable by yiisoft/yii2[2.0.10, 2.0.11, 2.0.11.1, 2.0.11.2, 2.0.6, 2.0.7, 2.0.8, 2.0.9].


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.

How can i solve ?

Solved in part by this command :


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



now when i try to see backand or frontend i have :




PHP User Error – yii\base\ErrorException


Exception 'yii\base\InvalidParamException' with message 'The file or directory to be published does not exist: /home/stefano/localhost/ricordamelo_yii2/vendor/bower/jquery/dist' 


in /home/stefano/localhost/ricordamelo_yii2/vendor/yiisoft/yii2/web/AssetManager.php:454


Stack trace:

#0 /home/stefano/localhost/ricordamelo_yii2/vendor/yiisoft/yii2/web/AssetBundle.php(185): yii\web\AssetManager->publish('/home/stefano/l...', Array)

#1 /home/stefano/localhost/ricordamelo_yii2/vendor/yiisoft/yii2/web/AssetManager.php(268): yii\web\AssetBundle->publish(Object(yii\web\AssetManager))

#2 /home/stefano/localhost/ricordamelo_yii2/vendor/yiisoft/yii2/web/AssetManager.php(239): yii\web\AssetManager->loadBundle('yii\\web\\JqueryA...', Array, true)

#3 /home/stefano/localhost/ricordamelo_yii2/vendor/yiisoft/yii2/web/View.php(286): yii\web\AssetManager->getBundle('yii\\web\\JqueryA...')

#4 /home/stefano/localhost/ricordamelo_yii2/vendor/yiisoft/yii2/web/View.php(291): yii\web\View->registerAssetBundle('yii\\web\\JqueryA...', NULL)

#5 /home/stefano/localhost/ricordamelo_yii2/vendor/yiisoft/yii2/web/View.php(291): yii\web\View->registerAssetBundle('yii\\web\\YiiAsse...', NULL)

#6 /home/stefano/localhost/ricordamelo_yii2/vendor/yiisoft/yii2/web/AssetBundle.php(125): yii\web\View->registerAssetBundle('yii\\validators\\...')

#7 /home/stefano/localhost/ricordamelo_yii2/vendor/yiisoft/yii2/validators/RequiredValidator.php(91): yii\web\AssetBundle::register(Object(yii\web\View))

#8 /home/stefano/localhost/ricordamelo_yii2/vendor/yiisoft/yii2/widgets/ActiveField.php(763): yii\validators\RequiredValidator->clientValidateAttribute(Object(common\models\LoginForm), 'username', Object(yii\web\View))

#9 /home/stefano/localhost/ricordamelo_yii2/vendor/yiisoft/yii2/widgets/ActiveField.php(230): yii\widgets\ActiveField->getClientOptions()

#10 /home/stefano/localhost/ricordamelo_yii2/vendor/yiisoft/yii2/widgets/ActiveField.php(220): yii\widgets\ActiveField->begin()

#11 /home/stefano/localhost/ricordamelo_yii2/vendor/yiisoft/yii2-bootstrap/ActiveField.php(187): yii\widgets\ActiveField->render(NULL)

#12 /home/stefano/localhost/ricordamelo_yii2/vendor/yiisoft/yii2/widgets/ActiveField.php(176): yii\bootstrap\ActiveField->render()

#13 /home/stefano/localhost/ricordamelo_yii2/backend/views/site/login.php(22): yii\widgets\ActiveField->__toString()

#14 /home/stefano/localhost/ricordamelo_yii2/vendor/yiisoft/yii2/base/View.php(328): require('/home/stefano/l...')

#15 /home/stefano/localhost/ricordamelo_yii2/vendor/yiisoft/yii2/base/View.php(250): yii\base\View->renderPhpFile('/home/stefano/l...', Array)

#16 /home/stefano/localhost/ricordamelo_yii2/vendor/yiisoft/yii2/base/View.php(152): yii\base\View->renderFile('/home/stefano/l...', Array, Object(backend\controllers\SiteController))

#17 /home/stefano/localhost/ricordamelo_yii2/vendor/yiisoft/yii2/base/Controller.php(381): yii\base\View->render('login', Array, Object(backend\controllers\SiteController))

#18 /home/stefano/localhost/ricordamelo_yii2/backend/controllers/SiteController.php(83): yii\base\Controller->render('login', Array)

#19 [internal function]: backend\controllers\SiteController->actionLogin()

#20 /home/stefano/localhost/ricordamelo_yii2/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)

#21 /home/stefano/localhost/ricordamelo_yii2/vendor/yiisoft/yii2/base/Controller.php(156): yii\base\InlineAction->runWithParams(Array)

#22 /home/stefano/localhost/ricordamelo_yii2/vendor/yiisoft/yii2/base/Module.php(523): yii\base\Controller->runAction('login', Array)

#23 /home/stefano/localhost/ricordamelo_yii2/vendor/yiisoft/yii2/web/Application.php(102): yii\base\Module->runAction('site/login', Array)

#24 /home/stefano/localhost/ricordamelo_yii2/vendor/yiisoft/yii2/base/Application.php(380): yii\web\Application->handleRequest(Object(yii\web\Request))

#25 /home/stefano/localhost/ricordamelo_yii2/backend/web/index.php(17): yii\base\Application->run()

#26 {main}




Looks like you didn’t proceed with the installation / setup step of the advanced app ?

this is the code :


composer create-project --prefer-dist yiisoft/yii2-app-advanced  ricordamelo_yii2

That’s only the first step, read this, please:

https://github.com/yiisoft/yii2-app-advanced/tree/master/docs/guide

Solved by download the archive…