从5.4升级Laravel到5.5.0

时间:2018-01-21 11:06:43

标签: php laravel

实际上,当我想升级我的Laravel版本时,我面临这个问题,所以在这种情况下,任何机构都有任何答案可以帮助我。

问题1

This package requires php >=7.0.0 but your PHP version (5.6.31) does not satisfy that requirement.

问题2

- laravel/framework v5.5.9 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.8 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.7 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.6 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.5 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.4 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.32 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.31 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.30 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.3 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.29 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.28 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.27 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.26 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.25 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.24 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.23 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.22 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.21 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.20 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.2 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.19 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.18 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.17 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.16 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.15 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.14 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.13 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.12 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.11 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.10 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.1 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- laravel/framework v5.5.0 requires php >=7.0 -> your PHP version (5.6.31) does not satisfy that requirement.
- Installation request for laravel/framework 5.5.* -> satisfiable by laravel/framework[v5.5.0, v5.5.1, v5.5.10, v5.5.11, v5.5.12, v5.5.13, v5.5.14, v5.5.15, v5.5.16, v5.5.17, v5.5.18, v5.5.19, v5.5.2, v5.5.20, v5.5.21, v5.5.22, v5.5.23, v5.5.24, v5.5.25, v5.5.26, v5.5.27, v5.5.28, v5.5.29, v5.5.3, v5.5.30, v5.5.31, v5.5.32, v5.5.4, v5.5.5, v5.5.6, v5.5.7, v5.5.8, v5.5.9].

当我在wamp服务器上检查我的Php版本时,版本是7.1.9,但我不知道何时我想更新我的laravel项目,我面对这个问题。

2 个答案:

答案 0 :(得分:1)

你可能有两个php安装。检查文件系统并删除旧版本。它显然使用的是5.6。

答案 1 :(得分:0)

实际上我找到了解决方案。当我安装Wamp服务器3.1.0时,所以在这个目录C:\ wamp64 \ bin \ php我发现三个文件夹php5.6.31,php7.0.23,php7.1.9和一个记事本提到不删除文件夹php5.6.31,所以当我想从wamp更改Php版本时,显示Php版本是php7.1.9,但是当我检查通过Cmd时。它显示php的版本是php5.6.31,我无法升级我的laravel版本。

Soultion:

首先转到Computer-> Properties->高级系统设置 - >提前选项 - >环境变量 - >系统变量 - >查找路径并编辑删除php5.6.31的路径并从C:\ wamp64 \ bin \ php添加php7.1.9的新路径只需重新启动wamp服务器甚至它不起作用再次卸载安装并通过wamp服务选择你想要的Php版本,并在选择你可以通过Cmd检查的版本并输入php -version后更改它,将出现新版本的Php,所以最后你可以升级你的laravel版本。

谢谢