composer require workerman/gateway-worker時報錯


Your requirements could not be resolved to an installable set of packages.

Problem 1
- phpoffice/phpspreadsheet 1.10.1 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- phpoffice/phpspreadsheet 1.10.1 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- Installation request for phpoffice/phpspreadsheet (installed at 1.10.1) -> satisfiable by phpoffice/phpspreadsheet[1.10.1].

To enable extensions, verify that they are enabled in your .ini files:
- /www/server/php/72/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 to its original content.

 

原因:缺少fileinfo擴展

解決辦法:找度娘,安裝完擴展后

執行安裝:

composer require phpoffice/phpspreadsheet=1.10.1  

 

 

 

等待成功,然后在執行

composer require workerman/gateway-worker

完成。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM