我有一个带有 php 8.0.0-dev 和 composer 的 docker 容器。我想创建一个 Laravel 应用程序来测试新的 PHP,但我有一些错误。
当我尝试使用以下命令创建一个新的 laravel 项目时:
composer create-project laravel/laravel test
我得到的错误是我没有所需的 PHP,即使 php 8.0.0 大于 php 7.x。
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
- laravel/framework v5.6.9 requires php ^7.1.3 -> your PHP version (8.0.0-dev) does not satisfy that requirement.
- laravel/framework v5.6.8 requires php ^7.1.3 -> your PHP version (8.0.0-dev) does not satisfy that requirement.
...
...
我可以以某种方式跳过 php 版本检查吗?
我试过了
--prefer-dist
和
--ignore-platform-reqs
但我收到此错误:
Problem 1
- Conclusion: don't install laravel/laravel v7.25.0|remove laravel/laravel v7.25.0
- Installation request for laravel/laravel v7.25.0 -> satisfiable by laravel/laravel[v7.25.0].
任何的想法?
谢谢!!!