CakePHP 3.x - Ошибка установки Phinx

В настоящее время я изучаю cakePHP 3.x и столкнулся с некоторыми проблемами при установке phinx.

composer require robmorgan/phinx

Я продолжаю получать ошибку ff:

Problem 1
- cakephp/migrations 1.8.1 requires robmorgan/phinx 0.8.1 -> satisfiable by robmorgan/phinx[v0.8.1] but these conflict with your requirements or minimum-stability.
- cakephp/migrations 1.8.1 requires robmorgan/phinx 0.8.1 -> satisfiable by robmorgan/phinx[v0.8.1] but these conflict with your requirements or minimum-stability.
- cakephp/migrations 1.8.1 requires robmorgan/phinx 0.8.1 -> satisfiable by robmorgan/phinx[v0.8.1] but these conflict with your requirements or minimum-stability.
- Installation request for cakephp/migrations (locked at 1.8.1, required as ^1.8.0) -> satisfiable by cakephp/migrations[1.8.1].

Я проверил свой файл composer.json и на всякий случай изменил запрос cakephp/cakephp с «3.6.*» на «^ 3.6», но я все еще получаю эту ошибку. Я пытаюсь установить Phinx, потому что сейчас изучаю семена cakePHP. Любые советы высоко ценится. Заранее спасибо :)


person JP Arcilla    schedule 05.07.2018    source источник
comment
Пожалуйста, проигнорируйте вопрос, я не знал, что Phinx уже установлен, и мне просто нужно было его инициализировать, чтобы создать файл phinx.yml.   -  person JP Arcilla    schedule 05.07.2018


Ответы (1)


Это связано с версией cakephp/migrations, попробуйте обновить ее в composer.json.

В моем случае я изменил его на "cakephp/migrations": "^2.0.0", и у меня все заработало.

person Gary Liu    schedule 07.01.2019