1

当我尝试安装时,出现此错误:

# composer require backpack/base
Using version ^0.7.3 for backpack/base
./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
    - Installation request for backpack/base ^0.7.3 -> satisfiable by backpack/base[0.7.3].
    - backpack/base 0.7.3 requires laravel/framework 5.3.* -> satisfiable by laravel/framework[5.3.x-dev, v5.3.0, v5.3.0-RC1, v5.3.1, v5.3.10, v5.3.11, v5.3.12, v5.3.13, v5.3.14, v5.3.15, v5.3.16, v5.3.17, v5.3.18, v5.3.19, v5.3.2, v5.3.3, v5.3.4, v5.3.5, v5.3.6, v5.3.7, v5.3.8, v5.3.9] but these conflict with your requirements or minimum-stability.


Installation failed, reverting ./composer.json to its original content.

如何解决?

4

1 回答 1

1

你可能正在运行一个 Laravel 5.2 应用程序。如果是这样,您有两个选择:

1)从 Laravel 5.2 升级到 Laravel 5.3,然后再试一次,它肯定会工作。对于一个中型项目,Laravel 升级大约需要 1 小时,但您将拥有使用最新和最好的(Laravel 和 Backpack)的所有好处。

2)为 Laravel 5.2 安装 Backpack,但请注意您运行的是旧的 Backpack 版本,您将不会收到任何更新或新功能。

当然,我的建议是选项#1。最后,你仍然需要更新 Laravel,然后更新 Backpack,所以最好现在就做。

于 2016-10-25T04:43:46.237 回答