S
S
Sergey Burduzha2017-10-11 16:06:35
Yii
Sergey Burduzha, 2017-10-11 16:06:35

How to overcome error when installing yii2 via composer?

I am installing yii2 for the first time.
I figured out the tokens, now it remains to solve the problem with dependencies

composer create-project yiisoft/yii2-app-basic 2.0.12                                                          ──(Ср,окт11)─┘
Installing yiisoft/yii2-app-basic (2.0.12)
  - Installing yiisoft/yii2-app-basic (2.0.12): Loading from cache
Created project in 2.0.12
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.5 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
    - yiisoft/yii2 2.0.12 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.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.5 -> satisfiable by yiisoft/yii2[2.0.10, 2.0.11, 2.0.11.1, 2.0.11.2, 2.0.12, 2.0.5, 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 exactly to solve the problem? The fact is that I started studying the course on yii2, everything was successfully installed with the teacher, but I have jambs, although I took the code from the site yii.
Could this be the problem?
{
    "require": {
        "fxp/composer-asset-plugin": "^1.2.0"
    }
}

Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Natalie, 2017-10-11
@serii81

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

Not all have been installed. Hint video here https://youtu.be/vuxB2vaZWAU?t=1m5s

S
Sergey Burduzha, 2017-10-11
@serii81

It worked, here is a link to the solution https://stackoverflow.com/questions/23083045/the-p...
It turns out that it was necessary to write composer create-project yiisoft/yii2-app-basic 2.0.12 -sdev

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question