D:\wamp64\www\ranking-master>composer u
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- mpdf/mpdf[v8.0.0-RC1, ..., v8.0.3] require php ^5.6 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 -> your php version (8.1.12) does not satisfy that requirement.
- mpdf/mpdf[v8.0.4, ..., v8.0.7] require php ^5.6 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 -> your php version (8.1.12) does not satisfy that requirement.
- mpdf/mpdf[v8.0.8, ..., v8.0.9] require php ^5.6 || ^7.0 -> your php version (8.1.12) does not satisfy that requirement.
- mpdf/mpdf[v8.0.10, ..., v8.0.12] require php ^5.6 || ^7.0 || ~8.0.0 -> your php version (8.1.12) does not satisfy that requirement.
- mpdf/mpdf[v8.0.13, ..., v8.1.4] require ext-gd * -> it is missing from your system. Install or enable PHP's gd extension.
- niklasravnsborg/laravel-pdf[v4.0.0, ..., v4.1.0] require mpdf/mpdf ^8.0 -> satisfiable by mpdf/mpdf[v8.0.0-RC1, ..., v8.1.4].
- Root composer.json requires niklasravnsborg/laravel-pdf ^4.0 -> satisfiable by niklasravnsborg/laravel-pdf[v4.0.0, v4.1.0].
To enable extensions, verify that they are enabled in your .ini files:
- C:\xampp\php\php.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-gd` to temporarily ignore these required extensions.
D:\wamp64\www\ranking-master>php --ini
Configuration File (php.ini) Path:
Loaded Configuration File: C:\xampp\php\php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
D:\wamp64\www\ranking-master>composer --ignore-platform-req=ext-gd
文件合成器. json
"require": {
"php": "^8.1.12",
"awssat/laravel-visits": "^3.0",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^1.0",
"guzzlehttp/guzzle": "^6.3",
"intervention/image": "^2.6",
"kavenegar/php": "^1.2",
"laravel/framework": "^7.0",
"laravel/tinker": "^2.0",
"laravel/ui": "^2.0",
"maatwebsite/excel": "^3.1",
"morilog/jalali": "3.\*",
"niklasravnsborg/laravel-pdf": "^4.0",
"orangehill/iseed": "^3.0",
"tucker-eric/eloquentfilter": "^2.4",
"tymon/jwt-auth": "^1.0"
}
嗨。我尝试运行composer u
并更新包,但显示错误!
该项目的PHP是7,我手动将其更改为PHP 8
请帮帮我。
1条答案
按热度按时间rqdpfwrv1#
第三方软件包需要启用特定的分机
尝试先安装它,然后再次运行
composer u