我安装了php 7.1,但我无法使用composer安装laravel 5.3

时间:2017-01-17 13:26:50

标签: php laravel wampserver

我已经按照安装本教程在wampserver中安装php 7.1 http://ryanstelmat.com/upgrading-wamp-server-to-php-7/

我启用了php 7.1,我在phpinfos中看到它,但是当我想使用composer安装最新版本的laravel时:

composer create-project laravel/laravel blog "5.3"

我收到此错误消息

  [InvalidArgumentException]
  Could not find package laravel/laravel with version 5.3 in a version instal
  lable using your PHP version 5.5.12.


create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--r
epository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no
-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vc
s] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<vers
ion>]

就像它不知道我最新的php版本一样。

我如何解决这个问题?

由于

1 个答案:

答案 0 :(得分:0)

尝试this安装laravel

{{1}}