首页 > 解决方案 > 安装 Laravel Valet 时的问题

问题描述

我正在尝试安装 Laravel Valet。

当我运行以下命令时: composer global require laravel/valet --update-with-all-dependencies

它返回以下错误:

Your requirements could not be resolved to an installable set of packages.

 Problem 1
- laravel/installer is locked to version v4.0.5 and an update of this package was not requested.
- laravel/installer v4.0.5 requires php ^7.3 -> your php version (8.0.1) does not satisfy that requirement.


Installation failed, reverting ./composer.json and ./composer.lock to their original content.

如果有人可以帮助我解决上述问题,我将不胜感激。

标签: laravellaravel-valet

解决方案


这是因为,在我写这篇文章的时候,Laravel 还不支持 PHP 8。你可以在这里查看拉取请求, https://github.com/laravel/framework/pull/33388


推荐阅读