laravel - 安装 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.
如果有人可以帮助我解决上述问题,我将不胜感激。
解决方案
这是因为,在我写这篇文章的时候,Laravel 还不支持 PHP 8。你可以在这里查看拉取请求, https://github.com/laravel/framework/pull/33388
推荐阅读
- python - Python Statsmodels 中多项 Logistic 的最大似然估计
- python - nbopen 在“打开方式”命令时失败
- c - 凯撒密码的问题
- python - 遍历在每 2 个文件夹处执行一个功能的文件夹
- autodesk-forge - 如何将 Autodesk Forge 模型查看器嵌入网站?
- storybook - 无法弄清楚为什么文档页面上的 arg 控件位于页面顶部
- node.js - 'nvm' 无法识别 - 但已安装
- python - Python Pylab - 设置 3d 文本颜色
- php - 语句未插入数据库
- javascript - 将表单提交映射到数组