0

我目前正在学习 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 种子。任何意见是极大的赞赏。先感谢您 :)

4

1 回答 1

0

它与 cakephp/migrations 版本有关,请尝试在composer.json.

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

于 2019-01-07T16:02:15.523 回答