安装 Voyager 在 Laravel 10 上

huangapple go评论82阅读模式
英文:

Installing Voyager On Laravel 10

问题

我有一个全新的Laravel 10项目,想要添加Voyager,所以我尝试运行:

composer require tcg/voyager

但它显示了以下错误:

问题 1
    - tcg/voyager v0.11.14 需要 illuminate/support ~5.3.0|~5.4.0 -> 发现 illuminate/support[v5.3.0, ..., v5.4.36],但它们未加载,可能是因为与其他要求冲突。
    - tcg/voyager[v1.0.10, ..., v1.0.17] 需要 illuminate/support ~5.4.0|~5.5.0 -> 发现 illuminate/support[v5.4.0, ..., v5.5.44],但它们未加载,可能是因为与其他要求冲突。
    - tcg/voyager[v1.1.0, ..., v1.1.3] 需要 illuminate/support ~5.4.0|~5.5.0|~5.6.0 -> 发现 illuminate/support[v5.4.0, ..., v5.6.39],但它们未加载,可能是因为与其他要求冲突。
    - tcg/voyager[v1.1.4, ..., v1.1.12] 需要 illuminate/support ~5.4.0|~5.5.0|~5.6.0|~5.7.0 -> 发现 illuminate/support[v5.4.0, ..., v5.7.28],但它们未加载,可能是因为与其他要求冲突。
    - tcg/voyager[v1.2.0, ..., v1.2.7] 需要 illuminate/support ~5.5.0|~5.6.0|~5.7.0|~5.8.0 -> 发现 illuminate/support[v5.5.0, ..., v5.8.36],但它们未加载,可能是因为与其他要求冲突。
    - tcg/voyager[v1.3.0, ..., v1.3.2] 需要 illuminate/support ~5.5|~6.0 -> 发现 illuminate/support[v5.5.0, ..., v5.8.36, v6.0.0, ..., v6.20.44],但它们未加载,可能是因为与其他要求冲突。
    - tcg/voyager[v1.4.0, ..., v1.4.2] 需要 illuminate/support ~6.0|~7.0 -> 发现 illuminate/support[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6],但它们未加载,可能是因为与其他要求冲突。
    - tcg/voyager[v1.4.3, ..., v1.5.2] 需要 illuminate/support ~6.0|~7.0|~8.0 -> 发现 illuminate/support[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, . .., v8.83.27],但它们未加载,可能是因为与其他要求冲突。
    - tcg/voyager v1.6.0 需要 illuminate/support ~8.0|~9.0 -> 发现 illuminate/support[v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.4],但它们未加载,可能是因为与其他要求冲突。
    - 根 composer.json 需要 tcg/voyager * -> 可满足 tcg/voyager[v0.11.14, v1.0.10, ..., v1.6.0]。

你也可以尝试使用明确的版本约束重新运行composer require,例如"composer require tcg/voyager:*",以查看是否可安装任何版本,或者如果你知道需要哪个版本,可以使用"composer require tcg/voyager:^2.1"。

然后,我尝试运行**composer require tcg/voyager --with-all-dependencies**,但再次显示相同的错误。

那么问题出在哪里?我该如何解决这个问题?

英文:

I have a fresh Laravel 10 project and I wanted to add Voyager, so I tried running:

composer require tcg/voyager

But it shows me this:

Problem 1
    - tcg/voyager v0.11.14 requires illuminate/support ~5.3.0|~5.4.0 -> found illuminate/support[v5.3.0, ..., v5.4.36] but these were not loaded, likely because it
 conflicts with another require.
    - tcg/voyager[v1.0.10, ..., v1.0.17] require illuminate/support ~5.4.0|~5.5.0 -> found illuminate/support[v5.4.0, ..., v5.5.44] but these were not loaded, like
ly because it conflicts with another require.
    - tcg/voyager[v1.1.0, ..., v1.1.3] require illuminate/support ~5.4.0|~5.5.0|~5.6.0 -> found illuminate/support[v5.4.0, ..., v5.6.39] but these were not loaded,
 likely because it conflicts with another require.
    - tcg/voyager[v1.1.4, ..., v1.1.12] require illuminate/support ~5.4.0|~5.5.0|~5.6.0|~5.7.0 -> found illuminate/support[v5.4.0, ..., v5.7.28] but these were not
 loaded, likely because it conflicts with another require.
    - tcg/voyager[v1.2.0, ..., v1.2.7] require illuminate/support ~5.5.0|~5.6.0|~5.7.0|~5.8.0 -> found illuminate/support[v5.5.0, ..., v5.8.36] but these were not
loaded, likely because it conflicts with another require.
    - tcg/voyager[v1.3.0, ..., v1.3.2] require illuminate/support ~5.5|~6.0 -> found illuminate/support[v5.5.0, ..., v5.8.36, v6.0.0, ..., v6.20.44] but these were
 not loaded, likely because it conflicts with another require.
    - tcg/voyager[v1.4.0, ..., v1.4.2] require illuminate/support ~6.0|~7.0 -> found illuminate/support[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6] but these were
 not loaded, likely because it conflicts with another require.
    - tcg/voyager[v1.4.3, ..., v1.5.2] require illuminate/support ~6.0|~7.0|~8.0 -> found illuminate/support[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, .
.., v8.83.27] but these were not loaded, likely because it conflicts with another require.
    - tcg/voyager v1.6.0 requires illuminate/support ~8.0|~9.0 -> found illuminate/support[v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.4] but these were not loaded,
likely because it conflicts with another require.
    - Root composer.json requires tcg/voyager * -> satisfiable by tcg/voyager[v0.11.14, v1.0.10, ..., v1.6.0].

You can also try re-running composer require with an explicit version constraint, e.g. "composer require tcg/voyager:*" to figure out if any version is installable
, or "composer require tcg/voyager:^2.1" if you know which you need.

Then I tried running composer require tcg/voyager --with-all-dependencies but again shows me the same error.

So what's going wrong here? How can I solve this issue?

答案1

得分: 0

Voyager目前尚不兼容Laravel 10。

Voyager文档

仓库中的相关问题

英文:

Voyager is not yet compatible with Laravel 10

Voyager doc

Related issue on the repo

huangapple
  • 本文由 发表于 2023年3月9日 21:39:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/75685385.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定