实时主机上的Laravel Passport安装错误[重复]

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了实时主机上的Laravel Passport安装错误[重复]相关的知识,希望对你有一定的参考价值。

我正在尝试在实时主机上安装laravel护照,但在终端中给了我这个错误,如果可以的话,请帮我:)


  Problem 1
    - league/flysystem 1.0.53 requires ext-fileinfo * -> the requested php extension fileinfo is missing from your system.
    - league/flysystem 1.0.53 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - league/flysystem 1.0.53 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - Installation request for league/flysystem (locked at 1.0.53) -> satisfiable by league/flysystem[1.0.53].

  To enable extensions, verify that they are enabled in your .ini files:
    - /opt/alt/php72/etc/php.ini
    - /opt/alt/php72/link/conf/alt_php.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Installation failed, reverting ./composer.json to its original content.```
答案

您必须通过从php.ini中删除开始的分号(;)来启用fileinfo扩展名

;extension=fileinfo

然后重新启动您的Web服务器

以上是关于实时主机上的Laravel Passport安装错误[重复]的主要内容,如果未能解决你的问题,请参考以下文章

Laravel - 实时服务器上的 Public_path()

laravel-filemanager 在将应用程序从本地主机传输到实时主机后显示错误

每天一点点之laravel框架 - Laravel5.6 + Passport实现Api接口认证

Encoding::UndefinedConversionError using Omniauth in Gitlab 13.5.3 with Laravel Passport - macOS 上的本

使用 Nuxt 前端实现 Laravel 7 Passport 身份验证

laravel Passport - 创建 REST API 用户认证以及Dingo/Api v2.0+Passport实现api认证