首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用composer在laravel中安装websocket时出错,要求超出代码/laravel-websocket

使用composer在laravel中安装websocket时出错,要求超出代码/laravel-websocket
EN

Stack Overflow用户
提问于 2022-01-11 07:47:48
回答 1查看 406关注 0票数 0

在我的laravel项目中安装websocket时,我遇到了一个作曲家错误。我的意图是安装这个websocket并使用它进行实时通知,但是在发出一个安装命令后,我面临一个错误。下面是我面临的问题:

代码语言:javascript
复制
  Problem 1
- Conclusion: don't install beyondcode/laravel-websockets 1.12.0
- Conclusion: remove guzzlehttp/psr7 2.1.0
- Installation request for beyondcode/laravel-websockets ^1.12 -> satisfiable by beyondcode/laravel-websockets[1.12.0, 1.x-dev].
- Conclusion: don't install guzzlehttp/psr7 2.1.0
- beyondcode/laravel-websockets 1.x-dev requires guzzlehttp/psr7 ^1.5 -> satisfiable by guzzlehttp/psr7[1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.6.1, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.8.3, 1.x-dev].
- Can only install one of: guzzlehttp/psr7[1.7.0, 2.1.0].
- Can only install one of: guzzlehttp/psr7[1.8.0, 2.1.0].
- Can only install one of: guzzlehttp/psr7[1.8.1, 2.1.0].
- Can only install one of: guzzlehttp/psr7[1.8.2, 2.1.0].
- Can only install one of: guzzlehttp/psr7[1.8.3, 2.1.0].
- Can only install one of: guzzlehttp/psr7[1.x-dev, 2.1.0].
- Can only install one of: guzzlehttp/psr7[1.5.0, 2.1.0].
- Can only install one of: guzzlehttp/psr7[1.5.1, 2.1.0].
- Can only install one of: guzzlehttp/psr7[1.5.2, 2.1.0].
- Can only install one of: guzzlehttp/psr7[1.6.0, 2.1.0].
- Can only install one of: guzzlehttp/psr7[1.6.1, 2.1.0].
- Installation request for guzzlehttp/psr7 (locked at 2.1.0) -> satisfiable by guzzlehttp/psr7[2.1.0].

安装失败,将./composer.json恢复为其原始内容。

有人能帮我解决这个问题吗?

EN

回答 1

Stack Overflow用户

发布于 2022-01-11 11:28:04

降低guzzlehttp/guzzle版本的级别

composer.json中的变化这些都是根据Laravel 8PHP8.0做的

试着降级或升级,直到它开始工作。

"php":“^7.3 x^8.0”,

"beyondcode/laravel-websockets":"^1.12“

“狂饮”:"^7.0.1",

"laravel/framework":"^8.40",

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70663230

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档