thinkphp6 Script @php think service:discover handling the post-autoload-dump event returned with error code 255

thinkphp6 Script @php think service:discover handling the post-autoload-dump event returned with error code 255

岳小威子
2023-04-11 / 15 个字 / 0 评论 / 85 阅读 / 加载耗时:26ms / 正在检测是否收录...
温馨提示:
本文最后更新于2023年04月11日,已超过370天没有更新,若内容或图片失效,请留言反馈。

thinkphp6 composer 出错

- Locking topthink/think-trace (v1.6)
  - Locking voku/portable-ascii (2.0.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Reading ./composer.lock (/www/wwwroot/report_myhosts_ga/composer.lock)
Nothing to install, update or remove
25 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
> post-autoload-dump: @php think service:discover
Executing command (CWD): '/www/server/php/81/bin/php' -d allow_url_fopen='1' -d disable_functions='' -d memory_limit='1536M' think service:discover
PHP Fatal error:  Uncaught Error: Class "PhpOption\Option" not found in /www/wwwroot/report_myhosts_ga/vendor/illuminate/support/Env.php:76
Stack trace:
#0 /www/wwwroot/report_myhosts_ga/vendor/illuminate/support/helpers.php(137): Illuminate\Support\Env::get()
#1 /www/wwwroot/report_myhosts_ga/config/app.php(8): env()
#2 /www/wwwroot/report_myhosts_ga/vendor/topthink/framework/src/think/Config.php(92): include('...')
#3 /www/wwwroot/report_myhosts_ga/vendor/topthink/framework/src/think/Config.php(73): think\Config->parse()
#4 /www/wwwroot/report_myhosts_ga/vendor/topthink/framework/src/think/App.php(523): think\Config->load()
#5 /www/wwwroot/report_myhosts_ga/vendor/topthink/framework/src/think/App.php(449): think\App->load()
#6 /www/wwwroot/report_myhosts_ga/vendor/topthink/framework/src/think/Console.php(110): think\App->initialize()
#7 /www/wwwroot/report_myhosts_ga/vendor/topthink/framework/src/think/Console.php(94): think\Console->initialize()
#8 [internal function]: think\Console->__construct()
#9 /www/wwwroot/report_myhosts_ga/vendor/topthink/framework/src/think/Container.php(395): ReflectionClass->newInstanceArgs()
#10 /www/wwwroot/report_myhosts_ga/vendor/topthink/framework/src/think/Container.php(252): think\Container->invokeClass()
#11 /www/wwwroot/report_myhosts_ga/vendor/topthink/framework/src/think/Container.php(131): think\Container->make()
#12 /www/wwwroot/report_myhosts_ga/vendor/topthink/framework/src/think/Container.php(513): think\Container->get()
#13 /www/wwwroot/report_myhosts_ga/think(10): think\Container->__get()
#14 {main}
  thrown in /www/wwwroot/report_myhosts_ga/vendor/illuminate/support/Env.php on line 76
Script @php think service:discover handling the post-autoload-dump event returned with error code 255


别问为啥,我也不知道!

文章到这里就结束了

您在本文章已经停留了大概
喜欢的话就点个赞吧!或着请我喝个冰可乐,我就太感谢你了!


0
打赏
拜谢打赏(☆ω☆)

感谢老板,老板大气。。

评论 (0)

取消