webman中MongoDB组件安装提示版本问题,并未安装成功

Leoba

问题描述

CentOS 8.5
php8.1
webman 1.5

当前composer.json如下:
{
  "name": "workerman/webman",
  "type": "project",
  "keywords": [
    "high performance",
    "http service"
  ],
  "homepage": "https://www.workerman.net",
  "license": "MIT",
  "description": "High performance HTTP Service Framework.",
  "authors": [
    {
      "name": "walkor",
      "email": "walkor@workerman.net",
      "homepage": "https://www.workerman.net",
      "role": "Developer"
    }
  ],
  "support": {
    "email": "walkor@workerman.net",
    "issues": "https://github.com/walkor/webman/issues",
    "forum": "https://wenda.workerman.net/",
    "wiki": "https://workerman.net/doc/webman",
    "source": "https://github.com/walkor/webman"
  },
  "require": {
    "php": ">=7.2",
    "workerman/webman-framework": "^1.5.0",
    "monolog/monolog": "^2.0",
    "illuminate/redis": "^10.20",
    "symfony/cache": "^6.3",
    "jasongrimes/paginator": "^1.0.3"
  },
  "suggest": {
    "ext-event": "For better performance. "
  },
  "autoload": {
    "psr-4": {
      "": "./",
      "app\\": "./app",
      "App\\": "./app",
      "app\\View\\Components\\": "./app/view/components"
    },
    "files": [
      "./support/helpers.php"
    ]
  },
  "scripts": {
    "post-package-install": [
      "support\\Plugin::install"
    ],
    "post-package-update": [
      "support\\Plugin::install"
    ],
    "pre-package-uninstall": [
      "support\\Plugin::uninstall"
    ]
  }
}
安装插件提示如下:

安装:

composer require -W illuminate/database jenssegers/mongodb ^3.8.0

提示文本和截图:

Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? y
Info from https://repo.packagist.org: #StandWithUkraine
./composer.json has been updated
Running composer update illuminate/database jenssegers/mongodb --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - jenssegers/mongodb[v3.8.0, ..., v3.8.5] require illuminate/support ^8.0 -> found illuminate/support[v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
    - jenssegers/mongodb[v3.9.0, ..., v3.9.5] require illuminate/support ^9.0 -> found illuminate/support[v9.0.0, ..., v9.52.15] but these were not loaded, likely because it conflicts with another require.
    - Root composer.json requires jenssegers/mongodb ^3.8.0 -> satisfiable by jenssegers/mongodb[v3.8.0, ..., v3.9.5].

You can also try re-running composer require with an explicit version constraint, e.g. "composer require illuminate/database:*" to figure out if any version is installable, or "composer require illuminate/database:^2.1" if you know which you need.

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

为此你搜索到了哪些方案及不适用的原因

https://www.workerman.net/q/11085
https://www.workerman.net/q/10571
搜到的方案和我的问题类似,都未能有解决方案,麻烦大家看看,你们是如何解决的

723 0 0
0个回答

年代过于久远,无法发表回答
×
🔝