PhpSpreadsheetをインストールしたいのですがエラーが出てしまい、どのようにしたらよいかわからう困っています・・・
環境:Clound9(Linux2)
php7.4
composerバージョン:2.0.9 2021-01-27 16:09:27
■打ったコマンド
$ composer require phpoffice/phpspreadsheet
■出たメッセージ
Using version ^1.16 for phpoffice/phpspreadsheet ./composer.json has been updated Running composer update phpoffice/phpspreadsheet 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 phpoffice/phpspreadsheet ^1.16 -> satisfiable by phpoffice/phpspreadsheet[1.16.0]. - phpoffice/phpspreadsheet 1.16.0 requires markbaker/complex ^1.5||^2.0 -> found markbaker/complex[1.5.0, 1.5.x-dev, 2.0.0, 2.0.x-dev] but the package is fixed to 1.4.8 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command. Problem 2 - phpoffice/phpspreadsheet 1.16.0 requires markbaker/complex ^1.5||^2.0 -> found markbaker/complex[1.5.0, 1.5.x-dev, 2.0.0, 2.0.x-dev] but the package is fixed to 1.4.8 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command. - maatwebsite/excel 3.1.19 requires phpoffice/phpspreadsheet ^1.10 -> satisfiable by phpoffice/phpspreadsheet[1.16.0]. - maatwebsite/excel is locked to version 3.1.19 and an update of this package was not requested. Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. Installation failed, reverting ./composer.json and ./composer.lock to their original content.
行き詰まってしまいました。。
ご教示いただますと幸いです。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2021/02/24 13:14