简体   繁体   English

无法为 Laravel 安装机器人

[英]Cant install botman for Laravel

I wanted to try to create a simple chatbot web-app using Laravel Botman.我想尝试使用 Laravel Botman 创建一个简单的聊天机器人网络应用程序。 I've created a new Laravel project but when I try to install Botman through the terminal.我创建了一个新的 Laravel 项目,但是当我尝试通过终端安装 Botman 时。 I get this error.我得到这个错误。

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.

I've tried deleting the composer.lock file and installing it again.我已经尝试删除 composer.lock 文件并再次安装它。 I tried using composer require botman/botman --with-all-dependencies but it still didn't work.我尝试使用composer require botman/botman --with-all-dependencies但它仍然不起作用。 Can anyone help me out?谁能帮我吗? Thank you.谢谢你。

Try adding to composer.json in the section requires "psr/container": "2.0.2 as 1.1.2","symfony/http-foundation": "6.0.3 as 5.4.3" and after that in the terminal 'composer requires botman/botman --with-all-dependencies尝试在需要 "psr/container": "2.0.2 as 1.1.2","symfony/http-foundation": "6.0.3 as 5.4.3" 部分中添加 composer.json ,然后在终端中添加composer 需要 botman/botman --with-all-dependencies

try composer require botman/botman composer require mpociot/botman package is abandoned尝试 composer require botman/botman composer require mpociot/botman package 被放弃

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM