Laravel 5.7中的安装灯塔

时间:2019-04-01 04:55:50

标签: laravel graphql lighthouse

描述错误 灯塔未安装在laravel 5.7上

使用软件包信息加载composer存储库 更新依赖项(包括require-dev)

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

  Problem 1
    - Conclusion: don't install nuwave/lighthouse v2.6.4
    - Conclusion: don't install nuwave/lighthouse v2.6.3
    - Conclusion: don't install nuwave/lighthouse v2.6.2
    - Conclusion: don't install nuwave/lighthouse v2.6.1
    - Conclusion: don't install nuwave/lighthouse v2.6.0
    - Conclusion: remove webonyx/graphql-php v0.13.1
    - Installation request for nuwave/lighthouse ^2.6 
      -> satisfiable by nuwave/lighthouse[2.x-dev, v2.6.0, v2.6.1, v2.6.2, v2.6.3, v2.6.4].
    - Conclusion: don't install webonyx/graphql-php v0.13.1
    - nuwave/lighthouse 2.x-dev requires webonyx/graphql-php ^0.12 
      -> satisfiable by webonyx/graphql-php[0.12.x-dev, v0.12.0, v0.12.1, v0.12.2, v0.12.3, v0.12.4, v0.12.5, v0.12.6].
    - Can only install one of: webonyx/graphql-php[0.12.x-dev, v0.13.1].
    - Can only install one of: webonyx/graphql-php[v0.12.0, v0.13.1].
    - Can only install one of: webonyx/graphql-php[v0.12.1, v0.13.1].
    - Can only install one of: webonyx/graphql-php[v0.12.2, v0.13.1].
    - Can only install one of: webonyx/graphql-php[v0.12.3, v0.13.1].
    - Can only install one of: webonyx/graphql-php[v0.12.4, v0.13.1].
    - Can only install one of: webonyx/graphql-php[v0.12.5, v0.13.1].
    - Can only install one of: webonyx/graphql-php[v0.12.6, v0.13.1].
    - Installation request for webonyx/graphql-php (locked at v0.13.1) 
      -> satisfiable by webonyx/graphql-php[v0.13.1].

1 个答案:

答案 0 :(得分:0)

如果您已经有一个Laravel 5.7项目,那么您真正需要的只是两个步骤:

  1. 通过composer require nuwave/lighthouse
  2. 安装
  3. graphql/schema.graphql中定义架构

根据nuwave/lighthouse软件包,您需要php: >= 7.1

除此之外,您还需要完成项目中软件包的要求