在更新SSRPanel的时候发现错误
输入命令
1 2 |
git pull php composer.phar install |
输出错误
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
root@us:/var/www/SSRPanel# php composer.phar install Do not run Composer as root/super user! See https://getcomposer.org/root for details 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 - Installation request for doctrine/inflector v1.3.0 -> satisfiable by doctrine/inflector[v1.3.0]. - doctrine/inflector v1.3.0 requires php ^7.1 -> your PHP version (7.0.30) does not satisfy that requirement. Problem 2 - Installation request for symfony/css-selector v4.1.3 -> satisfiable by symfony/css-selector[v4.1.3]. - symfony/css-selector v4.1.3 requires php ^7.1.3 -> your PHP version (7.0.30) does not satisfy that requirement. Problem 3 - Installation request for symfony/event-dispatcher v4.1.3 -> satisfiable by symfony/event-dispatcher[v4.1.3]. - symfony/event-dispatcher v4.1.3 requires php ^7.1.3 -> your PHP version (7.0.30) does not satisfy that requirement. Problem 4 - Installation request for symfony/translation v4.1.3 -> satisfiable by symfony/translation[v4.1.3]. - symfony/translation v4.1.3 requires php ^7.1.3 -> your PHP version (7.0.30) does not satisfy that requirement. Problem 5 - Installation request for doctrine/instantiator 1.1.0 -> satisfiable by doctrine/instantiator[1.1.0]. - doctrine/instantiator 1.1.0 requires php ^7.1 -> your PHP version (7.0.30) does not satisfy that requirement. Problem 6 - Installation request for myclabs/deep-copy 1.8.1 -> satisfiable by myclabs/deep-copy[1.8.1]. - myclabs/deep-copy 1.8.1 requires php ^7.1 -> your PHP version (7.0.30) does not satisfy that requirement. Problem 7 - Installation request for symfony/yaml v4.1.3 -> satisfiable by symfony/yaml[v4.1.3]. - symfony/yaml v4.1.3 requires php ^7.1.3 -> your PHP version (7.0.30) does not satisfy that requirement. Problem 8 - doctrine/inflector v1.3.0 requires php ^7.1 -> your PHP version (7.0.30) does not satisfy that requirement. - laravel/framework v5.4.36 requires doctrine/inflector ~1.1 -> satisfiable by doctrine/inflector[v1.3.0]. - Installation request for laravel/framework v5.4.36 -> satisfiable by laravel/framework[v5.4.36]. |
显示PHP版本与外部依赖不匹配,那么是否要升级PHP至7.1昵,其实不需要,只需要将命令替换为如下,忽略环境检测即可
1 |
root@us:/var/www/SSRPanel# composer install --ignore-platform-reqs |
There are no comments yet