Laravel - Composer detected issues in your platform after updating it(Laravel - Composer 在更新平台后检测到问题)
问题描述
所以我刚刚使用命令composer self-update --2
更新了composer,但是,现在我的 Web 应用程序显示错误 Composer 在您的平台中检测到问题:您的 Composer 依赖项需要 PHP 版本>= 7.3.0".
So i just updated composer using the command composer self-update --2
,
However, now my web application shows the error Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.3.0".
我不明白这是因为执行 php -v
给了我 PHP 7.4.13
I dont understand this because doing php -v
gives me PHP 7.4.13
我该如何解决这个问题?
How can I fix this?
推荐答案
您的终端用户的PHP版本可能与服务器的版本不同.
Your terminal user's PHP version may differ from the server's version.
您可能在终端上拥有 7.4.13,而在 apache2 或您使用的任何服务器中拥有完全不同的 PHP 版本.
You may have 7.4.13 on terminal while having a completely different PHP version in apache2 or whatever server you are using.
在 PHP 文件中使用 phpinfo();
并通过浏览器访问它以查看实际的 PHP 版本.
Use phpinfo();
in a PHP file and access it via browser to see the actual PHP version.
这篇关于Laravel - Composer 在更新平台后检测到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Laravel - Composer 在更新平台后检测到问题


基础教程推荐
- 主题化 Drupal 7 的 Ubercart “/cart"页 2021-01-01
- 如何在数学上评估像“2-1"这样的字符串?产生“1"? 2022-01-01
- php 7.4 在写入变量中的 Twig 问题 2022-01-01
- 使用 scandir() 在目录中查找文件夹 (PHP) 2022-01-01
- php中的PDF导出 2022-01-01
- Yii2 - 在运行时设置邮件传输参数 2022-01-01
- Web 服务器如何处理请求? 2021-01-01
- 将变量从树枝传递给 js 2022-01-01
- php中的foreach复选框POST 2021-01-01
- PHPUnit 的 Selenium 2 文档到底在哪里? 2022-01-01