我尝试使用命令
将迁移包添加到CakePHP 3.3composer require cakephp/migration:~1.0
但我收到了以下结果:
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package cakephp/migration could not be found in any version, there may be a typo in the package name.
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 <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, reverting ./composer.json to its original content.
有任何解决此问题的建议吗?
答案 0 :(得分:0)
正如@ndm所说的&#34;迁移&#34;,如果您使用composer等创建了应用程序,它也应默认安装。要激活它,您只需要按照指定here Plugin :: load(&#39;迁移&#39;);