gpt4 book ai didi

Laravel Composer无法更新/安装

转载 作者:行者123 更新时间:2023-12-04 04:51:34 25 4
gpt4 key购买 nike

我最近在 View 中更改了两行,并将代码推送到github。当我在Laravel Forge上部署时(大约2周没有更新)并且出现以下错误:

"error":{
"type":"ErrorException",
"message":"Declaration of Illuminate\\View\\Engines\\CompilerEngine::handleViewException() should be compatible with Illuminate\\View\\Engines\\PhpEngine::handleViewException($e)",
"file":"\/home\/forge\/default\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Engines\/CompilerEngine.php",
"line":100
}

如果没有这个错误,我什至无法做 php artisan -v。然后,我运行 composer diagnosis并得到:
Checking composer.json: FAIL
require.damianromanowski/simplecdn : unbound version constraints (dev-master) should be avoided
require.roumen/feed : unbound version constraints (dev-master) should be avoided
require.themonkeys/error-emailer : unbound version constraints (dev-master) should be avoided
require.abodeo/laravel-stripe : unbound version constraints (dev-master) should be avoided
require.mattbrown/laracurl : unbound version constraints (dev-master) should be avoided
require.themonkeys/cachebuster : unbound version constraints (dev-master) should be avoided
Checking platform settings: FAIL
The xdebug extension is loaded, this can slow down Composer a little.
Disabling it when using Composer is recommended, but should not cause issues beyond slowness.
Checking git settings: OK
Checking http connectivity: OK
Checking disk free space: OK
Checking composer version: OK

我如何使该错误消失?以前从未看过它,也不完全确定出了什么问题。

最佳答案

由#laravel中的AndreasLutro提供:

尝试删除bootstrap/compiled.php。

这为我解决了。

关于Laravel Composer无法更新/安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25882387/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com