根composer.json需要php^8.0,但您的php版本(7.4.27)不满足该要求

我安装了php7.4,但当我在项目中写入composer install时,我看到了以下错误:

Root composer.json requires php ^8.0 but your php version (7.4.27) does not satisfy that requirement.

项目所需的PHP版本与您安装的不同。您可以在composer.json的require部分更改版本,也可以安装PHP8.0。您也可以运行composer install --ignore-platform-reqs来忽略错误。

来源:https://blog.csdn.net/muzihuaner/article/details/128826031

 

https://blog.csdn.net/fujian9544/article/details/108020322

 

 

网站页面出现whoops looks like something went wrong.解决方案

 

问题
网站页面出现报错,有且只有一条信息:whoops looks like something went wrong.

解决
看到这条报错信息,说明网站用的框架是PHP的laravel。因为没有打开调试模式,所以看不到详细的报错信息。

此时只需找到/config/app.php文件,将其中的'debug' => env('APP_DEBUG', false)修改为'debug' => env('APP_DEBUG', true)。

如果保存上传测试还是不行,则看下根目录下是否有.env文件,有的话,打开将其中的APP_DEBUG=false修改为APP_DEBUG=true即可。

https://blog.csdn.net/lchu55/article/details/91352481

 

下载 8.5

composer create-project --prefer-dist laravel/laravel=8.5

来源:https://blog.csdn.net/didphp/article/details/116975262

 

posted @ 2023-02-17 14:06  小小强学习网  阅读(726)  评论(0编辑  收藏  举报