【发布时间】:2016-05-03 08:49:17
【问题描述】:
我一直在尝试将composer.phar 安装到我的HostGator 网站。但是,我遇到了这个错误:
[~/public_html/flarum]# php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- flarum/core v0.1.0-beta.4 requires php >=5.5.9 -> your PHP version (5.4.45) or value of "config.platform.php" in composer.json does not satisfy that requirement.
- flarum/core v0.1.0-beta.3 requires php >=5.5.9 -> your PHP version (5.4.45) or value of "config.platform.php" in composer.json does not satisfy that requirement.
- flarum/flarum-ext-suspend v0.1.0-beta.3 requires flarum/core ^0.1.0-beta.3 -> satisfiable by flarum/core[v0.1.0-beta.3, v0.1.0-beta.4].
- Installation request for flarum/flarum-ext-suspend ^0.1.0 -> satisfiable by flarum/flarum-ext-suspend[v0.1.0-beta.3].
我已通过cPanel 将我的PHP 更新到最新版本。
如果在这方面有任何帮助,我将不胜感激!
【问题讨论】:
-
/usr/bin/env php -v的输出是什么? -
composer.json中是否有"platform"配置
标签: php composer-php