CakePHP 3.x-安装Phinx错误

时间:2018-07-05 02:29:16

标签: cakephp 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种子。任何意见是极大的赞赏。预先谢谢你:)

1 个答案:

答案 0 :(得分:0)

它与cakephp / migrations版本有关,请尝试在composer.json中对其进行更新。

就我而言,我将其更改为"cakephp/migrations": "^2.0.0",对我来说效果很好。