问答

thinkphp5.0安装phpword扩展失败,怎么办?

作者:admin 2021-04-21 我要评论

报以下错误: Running composer update phpoffice/phpwordLoading composer repositories with package informationUpdating dependenciesYour requirements cou...

在说正事之前,我要推荐一个福利:你还在原价购买阿里云、腾讯云、华为云服务器吗?那太亏啦!来这里,新购、升级、续费都打折,能够为您省60%的钱呢!2核4G企业级云服务器低至69元/年,点击进去看看吧>>>)

报以下错误:

Running composer update phpoffice/phpword
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - topthink/think-installer v1.0.12 requires composer-plugin-api ^1.0 -> foun
d composer-plugin-api[2.0.0] but it does not match the constraint.
    - topthink/framework v5.0.21 requires topthink/think-installer ~1.0 -> satis
fiable by topthink/think-installer[v1.0.12].
    - topthink/framework is locked to version v5.0.21 and an update of this pack
age was not requested.

You are using Composer 2, which some of your plugins seem to be incompatible wit
h. Make sure you update your plugins or report a plugin-issue to ask them to sup
port Composer 2.

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

image

###

有包不支持你的 composer 2,需要用 composer 1 安装

composer self-update --1

安装 composer 1,若要安装 composer 2 可使用

composer self-update --2
###

使用composer self-update --1降版本后提示,咋整
image

版权声明:本文转载自网络,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。本站转载出于传播更多优秀技术知识之目的,如有侵权请联系QQ/微信:153890879删除

相关文章
  • thinkphp5.0安装phpword扩展失败,怎么

    thinkphp5.0安装phpword扩展失败,怎么

  • window.location.href 在微信中无效

    window.location.href 在微信中无效

  • el-menu如何只显示一级菜单

    el-menu如何只显示一级菜单

  • 关于vue 脚手架项目中挂载的VUE实例的

    关于vue 脚手架项目中挂载的VUE实例的

腾讯云代理商
海外云服务器