Closed zh7314 closed 3 weeks ago
强制指定一下版本号,安装 V4.4.3,看看提示什么:
composer require jaeger/querylist:V4.4.3
使用腾讯云镜像会出现
\laravel9> composer require jaeger/querylist:V4.4.3
./composer.json has been updated
Running composer update jaeger/querylist
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- symfony/cache[v7.0.0, ..., v7.1.1] require php >=8.2 -> your php version (8.0.2) does not satisfy that requirement.
- jaeger/querylist V4.4.3 requires jaeger/g-http ^2.0 -> satisfiable by jaeger/g-http[V2.0.0].
- jaeger/g-http V2.0.0 requires symfony/cache ^7.0 -> satisfiable by symfony/cache[v7.0.0, ..., v7.1.1].
- Root composer.json requires jaeger/querylist V4.4.3 -> satisfiable by jaeger/querylist[V4.4.3].
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
还发现一个问题,阿里云会出现一个问题就是,就是找不到版本
\NEW\laravel9> composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
(base) PS D:\phpstudy_pro\NEW\laravel9> composer require jaeger/querylist:V4.4.3
./composer.json has been updated
Running composer update jaeger/querylist
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires jaeger/querylist V4.4.3, found jaeger/querylist[dev-master, dev-develop, V3.1, ..., V3.2.1, V4.0.0, ..., V4.2.8] but it does not match the constraint.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
laravel9上php8.2也不太可能,8..0.x还行
(base) PS D:\phpstudy_pro\NEW\laravel9> php -v
PHP 8.2.9 (cli) (built: Aug 1 2023 12:41:16) (NTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.2.9, Copyright (c) Zend Technologies
(base) PS D:\phpstudy_pro\NEW\laravel9> composer require jaeger/querylist:V4.4.3
./composer.json has been updated
Running composer update jaeger/querylist
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Package fruitcake/laravel-cors is abandoned, you should avoid using it. No replacement was suggested.
Package sebastian/resource-operations is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
INFO Discovering packages.
barryvdh/laravel-ide-helper ................................................................................... DONE
fruitcake/laravel-cors ........................................................................................ DONE
intervention/image ............................................................................................ DONE
laravel/sail .................................................................................................. DONE
laravel/sanctum ............................................................................................... DONE
laravel/tinker ................................................................................................ DONE
mews/captcha .................................................................................................. DONE
nesbot/carbon ................................................................................................. DONE
nunomaduro/collision .......................................................................................... DONE
nunomaduro/termwind ........................................................................................... DONE
spatie/laravel-ignition ....................................................................................... DONE
91 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> @php artisan vendor:publish --tag=laravel-assets --ansi --force
INFO No publishable resources for tag [laravel-assets].
(base) PS D:\phpstudy_pro\NEW\laravel9>
总结,在php8.2,laravel9可以执行成功
系统windows 11 php版本 8.0.2 laravel 9.19.* Composer version 2.2.23
使用
composer require jaeger/querylist:*
只能兼容到 V3.2.1