首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不能为Laravel安装botman

不能为Laravel安装botman
EN

Stack Overflow用户
提问于 2022-04-10 22:14:42
回答 2查看 174关注 0票数 0

我想尝试用Laravel创建一个简单的聊天机器人网络应用程序。我创建了一个新的Laravel项目,但是当我试图通过终端安装Botman时。我知道这个错误。

代码语言:javascript
复制
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install botman/botman 2.6.1 (conflict analysis result)
    - symfony/mailer v6.0.7 requires symfony/service-contracts ^1.1|^2|^3 -> satisfiable by symfony/service-contracts[v3.0.1].
    - laravel/framework v9.7.0 requires symfony/mailer ^6.0 -> satisfiable by symfony/mailer[v6.0.7].
    - Root composer.json requires botman/botman ^2.6 -> satisfiable by botman/botman[2.6.0, 2.6.1].
    - Conclusion: don't install psr/container 2.0.2 (conflict analysis result)
    - Conclusion: don't install psr/container 1.1.2 (conflict analysis result)
    - laravel/framework is locked to version v9.7.0 and an update of this package was not requested.
    - Conclusion: don't install psr/container 2.0.1 (conflict analysis result)
    - botman/botman 2.6.0 requires psr/container ^1.0 -> satisfiable by psr/container[1.0.0, ..., 1.x-dev].
    - You can only install one version of a package, so only one of these can be installed: psr/container[dev-master, 1.0.0, ..., 1.x-dev, 2.0.0, 2.0.1, 2.0.2].
    - psr/container 2.0.x-dev is an alias of psr/container dev-master and thus requires it to be installed too.
    - symfony/service-contracts v3.0.1 requires psr/container ^2.0 -> satisfiable by psr/container[2.0.0, 2.0.1, 2.0.2, 2.0.x-dev (alias of dev-master)].
    - Conclusion: don't install psr/container[2.0.0] | install one of psr/container[2.0.1, 2.0.2] (conflict analysis result)


Installation failed, reverting ./composer.json and ./composer.lock to their original content.

我已经尝试删除composer.lock文件并再次安装它。我试过使用composer require botman/botman --with-all-dependencies,但仍然没有起作用。有人能帮我吗?谢谢。

EN

回答 2

Stack Overflow用户

发布于 2022-04-18 18:42:07

在本节中尝试添加到composer.json中需要“psr/容器”:"2.0.2 as 1.1.2“、"symfony/http-foundation":"6.0.3 as 5.4.3”,在终端'composer‘composer中需要botman/botman -具有所有依赖项。

票数 0
EN

Stack Overflow用户

发布于 2022-09-10 06:34:03

尝试作曲家要求botman/botman作曲家要求mpociot/botman软件包被放弃

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

https://stackoverflow.com/questions/71820960

复制
相关文章

相似问题

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