admin 发表于 2023-3-12 15:09:38

安装 maatwebsite/excel 失败

<h2>问题描述:</h2>

<p>项目需要excel导出,安装 maatwebsite/excel 的时候失败</p>

<h2>环境信息:</h2>

<p>PHP8.1、系统版本 modstart-laravel9、</p>

<h2>复现步骤:</h2>

<p>1 composer require maatwebsite/excel</p>

<p>2 </p>

<p>Problem 1</p>

<p>    - Root composer.json requires ezyang/htmlpurifier ^4.16, found ezyang/htmlpurifier but these were not loaded, likely because it conflicts with another require.</p>

<p>  Problem 2</p>

<p>    - modstart/modstart dev-master requires ezyang/htmlpurifier dev-master -> found ezyang/htmlpurifier but it conflicts with your root composer.json require (^4.16).</p>

<p>    - modstart/modstart-laravel9 dev-master requires modstart/modstart dev-master -> satisfiable by modstart/modstart.</p>

<p>    - modstart/modstart-laravel9 is locked to version dev-master and an update of this package was not requested.</p>

<p>3 尝试了 phpoffice/phpspreadsheet 也一样。</p>

<p>4 maatwebsite/excel 依赖 ezyang/htmlpurifier 4.16 ;但是mostart-laravel9 依赖 ezyang/htmlpurifier dev-master </p><hr>以下是回复内容:<br><div class="ub-html content">
                                                    <p>目前 ezyang/htmlpurifier 不支持 HTML 5,故我们采用了自己维护的一个版本,所以和所需要的依赖有一定的冲突。</p>
                                                </div><hr><br>采集网址:<br>https://modstart.com/thread/813
页: [1]
查看完整版本: 安装 maatwebsite/excel 失败