backpack-for-laravel 为 Laravel 5.3 安装背包时出错
backpack-for-laravel Error install backpack for Laravel 5.3
当我尝试安装时出现此错误:
# 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.
如何解决?
您可能 运行 是一个 Laravel 5.2 应用。如果是这样,您有两个选择:
1) Upgrade from Laravel 5.2 to Laravel 5.3,再试一次,一定可以。对于一个中型项目,Laravel 升级大约需要 1 小时,但您将享受到使用最新最好的软件(Laravel 和 Backpack)的所有好处。
2) Install Backpack for Laravel 5.2,但请注意,您 运行 是旧的 Backpack 版本,您不会收到任何更新或新功能。
我的建议当然是选项 #1。最后,您仍然需要更新 Laravel,然后更新 Backpack,所以最好现在就做。
当我尝试安装时出现此错误:
# 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.
如何解决?
您可能 运行 是一个 Laravel 5.2 应用。如果是这样,您有两个选择:
1) Upgrade from Laravel 5.2 to Laravel 5.3,再试一次,一定可以。对于一个中型项目,Laravel 升级大约需要 1 小时,但您将享受到使用最新最好的软件(Laravel 和 Backpack)的所有好处。
2) Install Backpack for Laravel 5.2,但请注意,您 运行 是旧的 Backpack 版本,您不会收到任何更新或新功能。
我的建议当然是选项 #1。最后,您仍然需要更新 Laravel,然后更新 Backpack,所以最好现在就做。