1、问题描述
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- phpoffice/phpspreadsheet is locked to version 1.18.0 and an update of this package was not requested.
- phpoffice/phpspreadsheet 1.18.0 requires ext-zip * -> it is missing from your system. Install or enable PHP's zip extension.
2、原因
这是因为不匹配composer.json要求的版本。提示我的PHP 7版本太高,不符合composer.json需要的版本,但是在PHP 7下应该也是可以运行的,composer可以设置忽略版本匹配。
3、解决方案
composer install --ignore-platform-reqs
或者
composer update --ignore-platform-reqs
文章来源:https://www.cnaaa.net,转载请注明出处:https://www.cnaaa.net/archives/7223