码迷,mamicode.com
首页 > 其他好文 > 详细

composer require workerman/gateway-worker时报错

时间:2020-07-04 11:39:20      阅读:104      评论:0      收藏:0      [点我收藏+]

标签:problem   mod   rev   off   origin   gateway   miss   原因   office   

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

完成。

 

composer require workerman/gateway-worker时报错

标签:problem   mod   rev   off   origin   gateway   miss   原因   office   

原文地址:https://www.cnblogs.com/j-jian/p/13234333.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!