用composer 安装包文件时,如果报如下错误:

Your requirements could not be resolved to an installable set of packages.

    不要较真,运行如下命令解决:

composer install --ignore-platform-reqs 或者 composer update --ignore-platform-reqs

    如果运行 composer 时报 php 语法错误,说明 composer 运行的 php 版本不对,如在 php 8 下运行 composer 2 以下版本,报语法错误,卸载后在 php 7.4 下运行即可正常。

相关文章:

  • 2021-09-06
  • 2021-09-08
  • 2021-10-18
  • 2021-10-20
  • 2021-04-13
  • 2021-11-13
  • 2021-12-27
猜你喜欢
  • 2021-04-18
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
相关资源
相似解决方案