Your requirements could not be resolved to an installable set of packages.
Problem 1
- phpoffice/phpspreadsheet 1.15.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- phpoffice/phpspreadsheet 1.14.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- phpoffice/phpspreadsheet 1.14.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- phpoffice/phpspreadsheet 1.13.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- phpoffice/phpspreadsheet 1.15.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- Installation request for phpoffice/phpspreadsheet ^1.13 -> satisfiable by phpoffice/phpspreadsheet[1.13.0, 1.14.0, 1.14.1, 1.15.0].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
解决办法
composer install --ignore-platform-reqs 或者 composer update --ignore-platform-reqs
应该是版本不兼容的问题 忽略版本号就OK
问题二
致命错误:中允许的内存大小1610612736字节已用尽
解决办法
php -d memory_limit=-1 /usr/local/bin/composer update 后面的路径改成你自己的路径