使用composer安装flarum论坛插件时报错

使用composer安装flaurm论坛插件(微博第三方登录)时出现错误
图片说明

求助w

https://www.cnblogs.com/lzq70112/p/13160725.html

没用过微博第三方登录,不过"Your requirements could not be resolved to an installable set of packages"这个错误一般是以下几个原因引起的。
1.试试composer install --ignore-platform-req,这个可以忽略一些安装要求。
2.可能是有些php扩展没安装,flarum需要的扩展是curl,dom,gd,json,mbstring,openssl,pdo_mysql,tokenizer,zip。可以用php -m查看一下已安装的扩展,如果有缺少的则安装。
3.有可能是包冲突,A依赖包C的某版本,B依赖包C的另一版本,就可能出现冲突,这个需要具体问题具体分析。

当然,如果题主觉得很麻烦,可以试试腾讯云开源应用中心


点几下就能部署