运行composer update时出现此错误: 问题1 - 此软件包需要php> = 7但您的PHP版本(5.6.30)不满足该要求。
当我运行php -v时,我得到:
PHP 7.1.4 (cli) (built: May 6 2017 10:02:00) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.4, Copyright (c) 1999-2017, by Zend Technologies
with Xdebug v2.5.3, Copyright (c) 2002-2017, by Derick Rethans
我做错了什么?
谢谢!
答案 0 :(得分:1)
尝试添加你的composer.json:
"config": {
"platform": {
"php": "7.1"
}
}