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
composer require vlucas/phpdotenv
别问为啥,我也不知道!
评论 (0)