php7.2 laravel,为何终端里的 PHP 版本为 7.2,Laravel new 的时候提示是 7.1?

我在终端当中使用 php -v 查看版本号显示 7.2。

PHP 7.2.14 (cli) (built: Feb 1 2019 12:25:00) ( NTS )

Copyright (c) 1997-2018 The PHP Group

Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

重新安装了 composer 和 laravel/installer,使用 laravel new blog 命令创建新项目时提示 7.1?

Crafting application...

Loading composer repositories with package information

Installing dependencies (including require-dev) from lock file

Your requirements could not be resolved to an installable set of packages.

Problem 1

- This package requires php ^7.2 but your PHP version (7.1.32) does not satisfy that requirement.

Problem 2

- Installation request for doctrine/lexer 1.2.0 -> satisfiable by doctrine/lexer[1.2.0].

- doctrine/lexer 1.2.0 requires php ^7.2 -> your PHP version (7.1.32) does not satisfy that requirement.

Problem 3

- Installation request for laravel/framework v6.9.0 -> satisfiable by laravel/framework[v6.9.0].

- laravel/framework v6.9.0 requires php ^7.2 -> your PHP version (7.1.32) does not satisfy that requirement.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值