作曲家安装失败-Jimmyjs/laravel-Report-Inererator



尝试安装 jimmyjs/laravel-report-generator

命令:

composer require jimmyjs/laravel-report-generator

输出:

vagrant@homestead:~/code/BEAM$ composer require jimmyjs/laravel-report-generator
Using version ^1.1 for jimmyjs/laravel-report-generator
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - Can only install one of: maatwebsite/excel[2.1.x-dev, 3.1.11].
    - Can only install one of: maatwebsite/excel[3.1.11, 2.1.x-dev].
    - Can only install one of: maatwebsite/excel[2.1.x-dev, 3.1.11].
    - jimmyjs/laravel-report-generator 1.1.0 requires maatwebsite/excel ~2.1.0 
      -> satisfiable by maatwebsite/excel[2.1.x-dev].
    - Installation request for jimmyjs/laravel-report-generator ^1.1 
      -> satisfiable by jimmyjs/laravel-report-generator[1.1.0].
    - Installation request for maatwebsite/excel (locked at 3.1.11, required as ^3.1) 
      -> satisfiable by maatwebsite/excel[3.1.11].
Installation failed, reverting ./composer.json to its original content.

我不知道我是否误解了错误?说我只能有一个a韦斯特石(情况(? composer.json当前需要,其中包含maatwebsite(仅实例(:

"require": {
    "php": ">=7.1.3",
    "barryvdh/laravel-snappy": "^0.4.4",
    "fideloper/proxy": "^4.0",
    "h4cc/wkhtmltoimage-amd64": "0.12.x",
    "h4cc/wkhtmltopdf-amd64": "0.12.x",
    "laravel/framework": "5.8.*",
    "laravel/tinker": "^1.0",
    "laravelcollective/html": "^5.6",
    "maatwebsite/excel": "^3.1",
    "spatie/laravel-permission": "^2.13"
},

如果您需要明确需要该版本的maatwebsite(" maatwebsite/excel":"^3.1"(,那么您无法修复它,因为jimmyjs/laravel-report-generator并非最新,并与新版本保持最新maatwebsite

如果您不需要Maatwebsite的版本3,则可以删除其要求,并且jimmyjs/laravel-report-generator将需要maatwebsite/excel 2.1.x-dev版本。

Wich可能会在您当前版本的PHP(7.1(中存在一些问题。

最好寻找使用Maatwebsite V3或其他东西的jimmyjs/laravel-report-generator的另一种替代方案

甚至更好,请自己做而不是使用jimmyjs/laravel-report-generator。Maatwebsite V3真的很容易使用

如果您已经看过它,则您的版本为3.1 "maatwebsite/excel": "^3.1",

现在检查您的错误

问题1 - 只能安装一个:maatwebsite/excel [2.1.x-dev,3.1.11]。

它说您需要在"maatwebsite/excel": "^2.1"

中安装

更改并添加您的composer.json文件:

"require": {
    "jimmyjs/laravel-report-generator": "^1.1",
    "maatwebsite/excel": "^2.1"
}, 

之后,在命令提示符composer update

中运行此命令

相关内容

  • 没有找到相关文章

最新更新