backpack-for-laravel用于Laravel 5.3的错误安装背包

时间:2016-10-24 12:41:56

标签: backpack-for-laravel

当我尝试安装时,我有这个错误:

# 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.

如何修复?

1 个答案:

答案 0 :(得分:1)

您可能正在运行Laravel 5.2应用。如果是这样,您有两种选择:

1)Upgrade from Laravel 5.2 to Laravel 5.3,然后再试一次,它肯定会起作用。对于一个中等规模的项目,Laravel升级大约需要1个小时,但是你将拥有使用最新最好的(Laravel和背包)的所有好处。

2)Install Backpack for Laravel 5.2,但请注意您正在运行旧背包版本,并且您将不会收到任何更新或新功能。

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