运行“ composer require lorisleiva / laravel-search-string”时出现的问题

问题描述

我一直在尝试安装lorisleiva / laravel-search-string,但我一直收到此错误。 需要此库来提供搜索功能。 即使Composer更新也会产生相同的错误。 (只是问题2,如果有更新)。 我也在下面添加了composer.json。希望这可以。 需要一些指导。

enter image description here

`{
"name": "laravel/laravel","type": "project","description": "The Laravel Framework.","keywords": [
    "framework","laravel"
],"license": "MIT","require": {
    "php": "^7.4","ext-json": "*","asm-laravel-admin-ext/tmeditor": "^1.0","barryvdh/laravel-ide-helper": "^2.7","cartalyst/stripe": "~2.0","darkaonline/l5-swagger": "^7.0","doctrine/dbal": "^2.10","encore/laravel-admin": "^1.7","facade/ignition": "^2.0","fideloper/proxy": "^4.0","fruitcake/laravel-cors": "^2.0","guzzlehttp/guzzle": "^7.0","intervention/image": "^2.5","james.xue/laravel-admin-sortable": "^1.0","laravel-admin-ext/config": "^1.1","laravel-admin-ext/helpers": "^1.2","laravel-admin-ext/log-viewer": "^1.0","laravel-admin-ext/redis-manager": "^1.3","laravel-admin-ext/scheduling": "^1.1","laravel/framework": "^7.0","laravel/helpers": "^1.2","laravel/slack-notification-channel": "^2.1","laravel/socialite": "^4.4","laravel/tinker": "^2.0","laravel/ui": "^2.0","league/flysystem-aws-s3-v3": "^1.0","league/oauth2-client": "^2.4","nazmulb/mac-address-php": "dev-master","phpunit/phpunit": "^8.5","sentry/sentry-laravel": "1.7.1","socialiteproviders/discord": "^2.0.2","socialiteproviders/twitch": "^5.2","stripe/stripe-php": "^7.17","tightenco/ziggy": "^0.9.3","tymon/jwt-auth": "1.0.0"
},"require-dev": {

    "fzaninotto/faker": "^1.4","mockery/mockery": "^1.0"
},"config": {
    "optimize-autoloader": true,"preferred-install": "dist","sort-packages": true
},"extra": {
    "laravel": {
        "dont-discover": []
    }
},"autoload": {
    "psr-4": {
        "App\\": "app/"
    },"classmap": [
        "database/seeds","database/factories"
    ]
},"autoload-dev": {
    "psr-4": {
        "Tests\\": "tests/"
    }
},"minimum-stability": "dev","prefer-stable": true,"scripts": {
    "post-autoload-dump": [
        "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump","@php artisan package:discover --ansi"
    ],"post-root-package-install": [
        "@php -r \"file_exists('.env') || copy('.env.dev','.env');\""
    ],"post-create-project-cmd": [
        "@php artisan key:generate --ansi"
    ]
}`

解决方法

给定的错误消息说明了一切:当前,由于任何其他要求,您在v1.7.0中安装了league/oauth1-client,并且该软件包与guzzlehttp/guzzle v7不兼容。您应该开始为什么检查第一个软件包是通过composer why league/oauth1-client安装的-该软件包在四年前的最后一次更新,并且您还需要league/oauth2-client,因此您可以安全删除

,

您使用的是laravel 7,我认为laravel 7不支持此程序包,它将在laravel 6中支持

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...