安装 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>
页:
[1]