@vitalyg

Как установить Yii через репозиторий composer?

Собственно проблема вся в том, что я скачал через satis весь репозиторий yii который был заявлен. Но, возникла ошибка с некоторыми пакетами.
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.

Как не искал репозитории которых нехватает так и не нашел ...
  • Вопрос задан
  • 1450 просмотров
Пригласить эксперта
Ответы на вопрос 1
Через composer надо вводить две команды. Первая устанавливает asset-plugin и используется только один раз. При его отсутствии выдаются ваши ошибки.
composer global require "fxp/composer-asset-plugin:^1.2.0"


После уже можно ставить сам фреймворк или базовый
composer create-project --prefer-dist yiisoft/yii2-app-basic <path>


или расширенный
composer create-project --prefer-dist yiisoft/yii2-app-advanced <path>
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы