V
V
vitalyg2016-08-26 09:07:00
Yii
vitalyg, 2016-08-26 09:07:00

How to install Yii via composer repository?

Actually, the whole problem is that I downloaded the entire yii repository via satis that was announced. But, there was an error with some packages.

Loading composer repositories with package information
Warning: Accessing packages.dev.loc over http which is an insecure protocol.
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package bower-asset/html5shiv could not be found in any version, there may be a typo in the package name.
Problem 2
- The requested package bower-asset/respond could not be found in any version, there may be a typo in the package name.
Problem 3
- 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.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.
- Installation request for yiisoft/yii2 >=2.0.6 -> satisfiable by yiisoft/yii2[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 for more details.
Read for further common problems.

As I did not look for repositories that are missing, I did not find ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Sinitsyn, 2016-08-26
@a_u_sinitsin

You need to enter two commands through composer. The first installs the asset-plugin and is only used once. If it is missing, your errors are displayed.
After that, you can already install the framework itself or the base
or extended

composer create-project --prefer-dist yiisoft/yii2-app-advanced <path>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question