Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用 wamp 服务器在我的项目中使用“Phinx”。我可以使用 cmd 安装:
遵循以下说明: http ://docs.phinx.org/en/latest/install.html
composer require robmorgan/phinx
但是当我运行命令时:
php vendor/bin/phinx init
输出是:
之后我的本地目录上没有安装 phinx.yml 文件
这是安装软件包时第一次遇到问题。有任何解决方案/建议吗?
我通过使用以下命令解决了这个问题:
vendor/bin/phinx init
不是:
也有同样的问题
php vendor/bin/phinx create MyFirstMigration
你需要使用那个命令
我有同样的问题。解决者:
注意:如果没有前面的 php,还请注意,对于 Windows,您将需要不同的语法:
vendor\bin\phinx init