Mac + Composer + PHP版本迷失方向

时间:2019-04-16 20:26:51

标签: php composer-php

我有安装了PHP的Macbook Pro。我想安装作曲家软件包。通过运行composer install我会收到消息

  Problem 1
    - Installation request for ocramius/proxy-manager 2.2.2 -> satisfiable by ocramius/proxy-manager[2.2.2].
    - ocramius/proxy-manager 2.2.2 requires php ^7.2.0 -> your PHP version (7.1.23) does not satisfy that requirement.
  Problem 2
    - ocramius/proxy-manager 2.2.2 requires php ^7.2.0 -> your PHP version (7.1.23) does not satisfy that requirement.
    - doctrine/migrations v1.5.0 requires ocramius/proxy-manager ^1.0|^2.0 -> satisfiable by ocramius/proxy-manager[2.2.2].
    - Installation request for doctrine/migrations v1.5.0 -> satisfiable by doctrine/migrations[v1.5.0].

但是当我运行php -v时,我得到了

PHP 7.2.9 (cli) (built: Aug 23 2018 02:08:27) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans
    with Zend OPcache v7.2.9, Copyright (c) 1999-2018, by Zend Technologie

这怎么可能?我该如何解决?

0 个答案:

没有答案