安裝 dingo/api 報錯:Your requirements could not be resolved

helong3314發表於2021-05-22

安裝報錯:

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 協議》,轉載必須註明作者和本文連結

相關文章