运行 Composer install `driver [] is not support` 时出现 Laravel 错误

发布于 2025-01-16 04:39:16 字数 838 浏览 2 评论 0原文

我想运行一个从 github 克隆的 laravel 应用程序。

我运行了命令:

git clone my-repo-title

composer install

出现此错误

> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   InvalidArgumentException

  Driver [] is not supported.

并显示以下消息:

105▕
106▕             if (method_exists($this, $driverMethod)) {
107▕                 return $this->{$driverMethod}($config);
108▕             } else {
➜ 109▕                 throw new InvalidArgumentException("Driver [{$config['driver']}] is not supported.");
 110▕             }
    111▕         }
    112▕     }
    113▕

我可以做什么来解决此问题?编辑我的 .env 文件?

当我执行命令composer update时,会发生相同的错误。

我能为此做什么?

谢谢大家

I want to run a laravel application cloned from github.

i ran the commands :

git clone my-repo-title

and

composer install

but this error happens

> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   InvalidArgumentException

  Driver [] is not supported.

with this message :

105▕
106▕             if (method_exists($this, $driverMethod)) {
107▕                 return $this->{$driverMethod}($config);
108▕             } else {
➜ 109▕                 throw new InvalidArgumentException("Driver [{$config['driver']}] is not supported.");
 110▕             }
    111▕         }
    112▕     }
    113▕

What can i do for resolve this problem ? edit my .env file ?

When i do the command composer update the same error happens.

What can i do for that ?

Thanks you all

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文