简体   繁体   中英

I installed php 7.1, but I can't install laravel 5.3 with composer

I have followed to install this tutorial to install php 7.1 in wampserver http://ryanstelmat.com/upgrading-wamp-server-to-php-7/

I enabled php 7.1 and I see it in phpinfos, but when I want to install latest version of laravel using composer :

composer create-project laravel/laravel blog "5.3"

I get this error message

  [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>]

Like if it doesn't know my latest php version.

How I can fix that?

Thanks

试试这个安装laravel

composer create-project --prefer-dist laravel/laravel blog

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM