Failed to create project from yiisoft/yii2-app-basic

I have this error when I try to create new composer project:




C:\xampp\php\php.exe C:\ProgramData\Composer\bin\composer.phar create-project yiisoft/yii2-app-basic C:\xampp\htdocs\testyii\composer 2.0.0 -n --no-progress

Installing yiisoft/yii2-app-basic (2.0.0)

  - Installing yiisoft/yii2-app-basic (2.0.0)

    Loading from cache


Created project in C:\xampp\htdocs\testyii\composer

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

    - Installation request for yiisoft/yii2 * -> satisfiable by yiisoft/yii2[2.0.0].

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

  Problem 2

    - Installation request for yiisoft/yii2-bootstrap * -> satisfiable by yiisoft/yii2-bootstrap[2.0.0].

    - yiisoft/yii2-bootstrap 2.0.0 requires bower-asset/bootstrap 3.2.* | 3.1.* -> no matching package found.

  Problem 3

    - Installation request for yiisoft/yii2-gii * -> satisfiable by yiisoft/yii2-gii[2.0.0].

    - yiisoft/yii2-gii 2.0.0 requires bower-asset/typeahead.js 0.10.* -> no matching package found.

  Problem 4

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

    - yiisoft/yii2-faker 2.0.0 requires yiisoft/yii2 * -> satisfiable by yiisoft/yii2[2.0.0].

    - Installation request for yiisoft/yii2-faker * -> satisfiable by yiisoft/yii2-faker[2.0.0].


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 <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.



6154

fail.jpg

Add php & composer to your windows path and do it again:


composer create-project --prefer-dist yiisoft/yii2-app-basic basic

http://www.yiiframework.com/doc-2.0/guide-start-installation.html

I have a similar issue in linux. Could you fix it ?

In my case was because I did not have the plugin for dependencies installed as the tutorial showed.


composer global require "fxp/composer-asset-plugin:1.0.0-beta4"

I experienced a similar behavior, I think the principal issue was :


Your requirements could not be resolved to an installable of packages

What one can do is adding dependencies in composer.json file one by one, and then adjusting the versions on following the tip given by


satisfiable by.....

.

This works for me, I am on a ubuntu 14.04, deploying to a simple LAMP vagrant virtual machine.

But I still have an bigger issue [at least big for me, because I prefere fighting against a computer to find a solution then waiting +10 minutes to download a bit more then 20 Mo??? ],

My issue is It take really long to install yii2 via composer, Install from an Archive File take 2 secondes!!! via composer 10 minutes.

I changed my DNS to 8.8.8.8 & 8.8.4.4 but it change nothing. does anyone knows where the problem can be?