laravel 5.8无法安装dingo

laravel 5.8无法安装dingo

composer.json文件中已经加入了如下代码:

   ...
   "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "scripts": {
    ...

安装报如下错误:

vagrant@homestead:~/Code/larabbs$ composer require dingo/api
Using version ^3.0 for dingo/api
./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
    - Conclusion: don't install dingo/api v3.0.0
    - Conclusion: don't install dingo/api v3.0.0-rc3
    - Conclusion: don't install dingo/api v3.0.0-rc2
    - dingo/api v3.0.0-rc1 requires dingo/blueprint ^0.4 -> satisfiable by dingo/blueprint[v0.4.0, v0.4.1].
    - Conclusion: don't install dingo/blueprint v0.4.0
    - Conclusion: remove laravel/framework v5.8.38
    - Installation request for dingo/api ^3.0 -> satisfiable by dingo/api[v3.0.0, v3.0.0-rc1, v3.0.0-rc2, v3.0.0-rc3].
    - Conclusion: don't install dingo/blueprint v0.4.0|remove phpdocumentor/reflection-docblock 5.2.1|install phpdocumentor/reflection-docblock 3.1.0|install phpdocumentor/reflection-docblock 3.1.1|install phpdocumentor/reflection-docblock 3.2.0|install phpdocumentor/reflection-docblock 3.2.1|install phpdocumentor/reflection-docblock 3.2.2|install phpdocumentor/reflection-docblock 3.2.3|install phpdocumentor/reflection-docblock 3.3.0|install phpdocumentor/reflection-docblock 3.3.2|install phpdocumentor/reflection-docblock 4.1.0|install phpdocumentor/reflection-docblock 4.1.1|install phpdocumentor/reflection-docblock 4.2.0|install phpdocumentor/reflection-docblock 4.3.0|install phpdocumentor/reflection-docblock 4.3.1
    - Conclusion: don't install dingo/blueprint v0.4.0|don't install phpdocumentor/reflection-docblock 5.2.1|install phpdocumentor/reflection-docblock 3.1.0|install phpdocumentor/reflection-docblock 3.1.1|install phpdocumentor/reflection-docblock 3.2.0|install phpdocumentor/reflection-docblock 3.2.1|install phpdocumentor/reflection-docblock 3.2.2|install phpdocumentor/reflection-docblock 3.2.3|install phpdocumentor/reflection-docblock 3.3.0|install phpdocumentor/reflection-docblock 3.3.2|install phpdocumentor/reflection-docblock 4.1.0|install phpdocumentor/reflection-docblock 4.1.1|install phpdocumentor/reflection-docblock 4.2.0|install phpdocumentor/reflection-docblock 4.3.0|install phpdocumentor/reflection-docblock 4.3.1
    - Installation request for phpdocumentor/reflection-common (locked at 2.2.0) -> satisfiable by phpdocumentor/reflection-common[2.2.0].
    - Conclusion: don't install dingo/blueprint v0.4.0|remove phpdocumentor/reflection-docblock 5.2.1|install phpdocumentor/reflection-docblock 3.1.0|install phpdocumentor/reflection-docblock 3.1.1|install phpdocumentor/reflection-docblock 3.2.0|install phpdocumentor/reflection-docblock 3.2.1|install phpdocumentor/reflection-docblock 3.2.2|install phpdocumentor/reflection-docblock 3.2.3|install phpdocumentor/reflection-docblock 3.3.0|install phpdocumentor/reflection-docblock 3.3.2|install phpdocumentor/reflection-docblock 4.1.0|install phpdocumentor/reflection-docblock 4.1.1|install phpdocumentor/reflection-docblock 4.2.0|install phpdocumentor/reflection-docblock 4.3.0|install phpdocumentor/reflection-docblock 4.3.1
    - Conclusion: don't install dingo/blueprint v0.4.0|don't install phpdocumentor/reflection-docblock 5.2.1|install phpdocumentor/reflection-docblock 3.1.0|install phpdocumentor/reflection-docblock 3.1.1|install phpdocumentor/reflection-docblock 3.2.0|install phpdocumentor/reflection-docblock 3.2.1|install phpdocumentor/reflection-docblock 3.2.2|install phpdocumentor/reflection-docblock 3.2.3|install phpdocumentor/reflection-docblock 3.3.0|install phpdocumentor/reflection-docblock 3.3.2|install phpdocumentor/reflection-docblock 4.1.0|install phpdocumentor/reflection-docblock 4.1.1|install phpdocumentor/reflection-docblock 4.2.0|install phpdocumentor/reflection-docblock 4.3.0|install phpdocumentor/reflection-docblock 4.3.1
    - Installation request for phpdocumentor/reflection-docblock (locked at 5.2.1) -> satisfiable by phpdocumentor/reflection-docblock[5.2.1].
    - Conclusion: don't install laravel/framework v5.8.38
    - dingo/blueprint v0.4.1 requires illuminate/filesystem ^7.0 -> satisfiable by illuminate/filesystem[7.x-dev, v7.0.0, v7.0.1, v7.0.2, v7.0.3, v7.0.4, v7.0.5, v7.0.6, v7.0.7, v7.0.8, v7.1.0, v7.1.1, v7.1.2, v7.1.3, v7.10.0, v7.10.1, v7.10.2, v7.10.3, v7.11.0, v7.12.0, v7.13.0, v7.14.0, v7.14.1, v7.15.0, v7.16.0, v7.16.1, v7.17.0, v7.17.1, v7.17.2, v7.18.0, v7.19.0, v7.19.1, v7.2.0, v7.2.1, v7.2.2, v7.20.0, v7.21.0, v7.22.0, v7.22.1, v7.22.2, v7.22.3, v7.22.4, v7.23.0, v7.23.1, v7.23.2, v7.24.0, v7.25.0, v7.26.0, v7.26.1, v7.3.0, v7.4.0, v7.5.0, v7.5.1, v7.5.2, v7.6.0, v7.6.1, v7.6.2, v7.7.0, v7.7.1, v7.8.0, v7.8.1, v7.9.0, v7.9.1, v7.9.2].
    - don't install illuminate/filesystem 7.x-dev|don't install laravel/framework v5.8.38
   .
   .
   .
    - don't install illuminate/filesystem v7.9.2|don't install laravel/framework v5.8.38
    - Installation request for laravel/framework (locked at v5.8.38, required as 5.8.*) -> satisfiable by laravel/framework[v5.8.38].

Installation failed, reverting ./composer.json to its original content.
《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
讨论数量: 4
liyu001989

指定 2.2.3 这个版本试一下呢

1个月前 评论

指定版本运行也是报错。

composer require dingo/api:2.2.3
1个月前 评论
liyu001989

github.com/summerblue/larabbs/blob...

看一下当时的版本 和 composer.lock 吧。或者直接clone 5.8 这个分支的项目试一下

1个月前 评论

已解决!
目前是直接fork一份作者的,然后安装的是dingo/api:~2.0

composer require dingo/api:~2.0

在最新版dingo/api3.0版本的时候时候报错,所有转为低版本的安装。
目前已安装成功。

1个月前 评论

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