我在安装laravel5.3
框架时遇到了困难,问题是当我用作为composer create-project --prefer-dist laravel/laravel blog
的作曲家安装最新版本时,它会自动安装laravel 5.2
而不是“laravel 5.3”
当我将laravel 5.2
更改为laravel 5.3
文件中的composer.json
并运行composer update
时,会出现这样的错误。
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/framework v5.3.9 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.8 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.7 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.6 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.5 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.4 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.3 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.28 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.27 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.26 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.25 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.24 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.23 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.22 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.21 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.20 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.2 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.19 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.18 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.17 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.16 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.15 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.14 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.13 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.12 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.11 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.10 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.1 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- laravel/framework v5.3.0 requires php >=5.6.4 -> your PHP version (5.6.3) does not satisfy that requirement.
- Installation request for laravel/framework 5.3.* -> satisfiable by laravel/framework[v5.3.0, 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.20, v5.3.21, v5.3.22, v5.3.23, v5.3.24, v5.3.25, v5.3.26, v5.3.27, v5.3.28, v5.3.3, v5.3.4, v5.3.5, v5.3.6, v5.3.7, v5.3.8, v5.3.9].
但我有新的安装xampp,显示我的PHP version
是7.0.13
(通过此回显'当前PHP版本检查:' .phcversion();)
发生了什么?为什么我无法安装Laravel 5.3?
答案 0 :(得分:0)
我认为最好安装一个新的Laravel 5.3而不是升级它。这是更多的工作,但避免许多问题。
在运行composer create-project --prefer-dist laravel/laravel blog
之前,请将您的系统配置与laravel 5.3 require configuration
<强>更新强>
您可以针对特定的laravel版本尝试composer create-project --prefer-dist laravel/laravel=5.3.* blog
,然后运行composer update
。
答案 1 :(得分:0)
首先你应该更新你的php版本(使用7.0)因为laravel 5.3通常适用于php7.0, 然后你应该将composer.json中的laravel版本从5.2更改为5.3然后再运行composer update !!!!!! 一切都会好的。