【发布时间】:2020-09-06 02:09:32
【问题描述】:
今天我想用这个命令用 Laravel 创建一个新项目
laravel new blog
但我得到了这个错误
Crafting application...
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for mockery/mockery 1.4.0 -> satisfiable by mockery/mockery[1.4.0].
- mockery/mockery 1.4.0 requires php ^7.3.0 -> your PHP version (7.2.23) does not satisfy that requirement.
为什么Laravel自己说至少php7.2.5还要读php7.3???
【问题讨论】:
-
奇数。当前版本的 Laravel 只需要 Mockery 1.3。 github.com/laravel/laravel/blob/…
标签: laravel composer-php