我想尝试用Laravel创建一个简单的聊天机器人网络应用程序。我创建了一个新的Laravel项目,但是当我试图通过终端安装Botman时。我知道这个错误。
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,但仍然没有起作用。有人能帮我吗?谢谢。
发布于 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 -具有所有依赖项。
发布于 2022-09-10 06:34:03
尝试作曲家要求botman/botman作曲家要求mpociot/botman软件包被放弃
https://stackoverflow.com/questions/71820960
复制相似问题