Can only install one of: topthink/think-installer[v2.0.0, v1.0.12].

  • 2019 年 10 月 25 日
  • 筆記

版權聲明:本文為部落客原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接和本聲明。

本文鏈接:https://blog.csdn.net/u011415782/article/details/102482034

  • 這種情況發生在: 我要在自己的 ThinkPHP5.1.2框架中,使用 composer 命令安裝 workerMan 拓展的時候所提示的資訊
  • composer 命令:composer require topthink/think-worker=v2.0.9
  • 提示資訊
  • 列印資訊如下:
./composer.json has been updated  Loading composer repositories with package information  Updating dependencies (including require-dev)  Your requirements could not be resolved to an installable set of packages.      Problem 1      - Can only install one of: topthink/think-installer[v2.0.0, v1.0.12].      - Can only install one of: topthink/think-installer[v2.0.0, v1.0.12].      - Can only install one of: topthink/think-installer[v2.0.0, v1.0.12].      - topthink/think-worker v2.0.9 requires topthink/think-installer ^2.0 -> satisfiable by topthink/think-installer[v2.0.0].      - Installation request for topthink/think-worker v2.0.9 -> satisfiable by topthink/think-worker[v2.0.9].      - Installation request for topthink/think-installer (locked at v1.0.12) -> satisfiable by topthink/think-installer[v1.0.12].      Installation failed, reverting ./composer.json to its original content.
  • 通過對提示資訊的閱讀理解,說明當前的框架只讓安裝 v2.0.0, v1.0.12 的其中一個; 也就是說,當前的 ThinkPHP 框架太低,不足以滿足 v2.0.9 版本的 workerMan; 解決方案就是: 安裝一個較低版本的 workerMan唄!