Replies: 2 comments 4 replies
-
phpoffice/phpspreadsheet[1.14.0, ..., 1.21.0] require ext-zip * -> it is missing from your system. Install or enable PHP's zip extension. You are missing the zip extension in your PHP installation. Therefor the correct version of phpspreadsheet cannot be installed. |
Beta Was this translation helpful? Give feedback.
-
Figured it out, I ran composer required as Another solution I did not try was to install the ext-zip extension. I read that Catalina did not come with that by default. |
Beta Was this translation helpful? Give feedback.
-
Hi,
In Laravel 8
composer require maatwebsite/excel
has issue
Any suggestions or what info do I need to post for additional details?
I will add ext-zip as soon as I figure out how to add a php.ini when working with docker
Thank you for all the help
$ composer require maatwebsite/excel
Using version ^3.1 for maatwebsite/excel
./composer.json has been updated
Running composer update maatwebsite/excel
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- maatwebsite/excel[3.1.28, ..., 3.1.30] require phpoffice/phpspreadsheet 1.16.* -> satisfiable by phpoffice/phpspreadsheet[1.16.0].
- maatwebsite/excel[3.1.31, ..., 3.1.x-dev] require phpoffice/phpspreadsheet ^1.18 -> satisfiable by phpoffice/phpspreadsheet[1.18.0, 1.19.0, 1.20.0, 1.21.0].
- maatwebsite/excel 3.1.27 requires phpoffice/phpspreadsheet ^1.16 -> satisfiable by phpoffice/phpspreadsheet[1.16.0, ..., 1.21.0].
- maatwebsite/excel 3.1.26 requires phpoffice/phpspreadsheet ^1.15 -> satisfiable by phpoffice/phpspreadsheet[1.15.0, ..., 1.21.0].
- maatwebsite/excel[3.1.22, ..., 3.1.25] require phpoffice/phpspreadsheet ^1.14 -> satisfiable by phpoffice/phpspreadsheet[1.14.0, ..., 1.21.0].
- maatwebsite/excel 3.1.0 requires illuminate/support ^5.5 -> found illuminate/support[v5.5.0, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.
- maatwebsite/excel[3.1.1, ..., 3.1.6] require illuminate/support 5.5.* || 5.6.* || 5.7.* -> found illuminate/support[v5.5.0, ..., 5.7.x-dev] but these were not loaded, likely because it conflicts with another require.
- maatwebsite/excel[3.1.7, ..., 3.1.15] require illuminate/support 5.5.|5.6.|5.7.|5.8. -> found illuminate/support[v5.5.0, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.
- maatwebsite/excel[3.1.16, ..., 3.1.18] require illuminate/support 5.5.|5.6.|5.7.|5.8.|^6.0 -> found illuminate/support[v5.5.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev] but these were not loaded, likely because it conflicts with another require.
- maatwebsite/excel[3.1.19, ..., 3.1.21] require illuminate/support 5.5.|5.6.|5.7.|5.8.|^6.0|^7.0 -> found illuminate/support[v5.5.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev] but these were not loaded, likely because it conflicts with another require.
- phpoffice/phpspreadsheet[1.14.0, ..., 1.21.0] require ext-zip * -> it is missing from your system. Install or enable PHP's zip extension.
- Root composer.json requires maatwebsite/excel ^3.1 -> satisfiable by maatwebsite/excel[3.1.0, ..., 3.1.x-dev].
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.Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Beta Was this translation helpful? Give feedback.
All reactions