安装 dingo/api 报错:Your requirements could not be resolved

安装报错:

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

解决办法:直接忽略版本

composer install --ignore-platform-reqs 

或者

composer update --ignore-platform-reqs
mac$ composer update --ignore-platform-reqs
Loading composer repositories with package information
Updating dependencies
Lock file operations: 5 installs, 0 updates, 0 removals
  - Locking dingo/api (v3.0.6)
  - Locking dingo/blueprint (v0.4.2)
  - Locking doctrine/annotations (1.13.1)
  - Locking league/fractal (0.19.2)
  - Locking psr/cache (3.0.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 5 installs, 0 updates, 0 removals
  - Downloading league/fractal (0.19.2)
  - Downloading psr/cache (3.0.0)
  - Downloading dingo/blueprint (v0.4.2)
  - Downloading dingo/api (v3.0.6)
  - Installing league/fractal (0.19.2): Extracting archive
  - Installing psr/cache (3.0.0): Extracting archive
  - Installing doctrine/annotations (1.13.1): Extracting archive
  - Installing dingo/blueprint (v0.4.2): Extracting archive
  - Installing dingo/api (v3.0.6): Extracting archive
3 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Discovered Package: dingo/api
Discovered Package: facade/ignition
Discovered Package: fideloper/proxy
Discovered Package: fruitcake/laravel-cors
Discovered Package: laravel/sail
Discovered Package: laravel/tinker
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Package manifest generated successfully.
74 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
本作品采用《CC 协议》,转载必须注明作者和本文链接
《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!