我有一个FuelPhp项目,我正在尝试通过composer安装依赖项。 当我在命令行上运行composer install时,我得到以下错误;
The requested PHP extension ext-mbstring ^0.0.0 has the wrong version (7.0.18) installed. Install or enable PHP's mbstring extension.
我安装并启用了mbstring扩展。为什么作曲家抱怨ext-mbstring扩展?
作曲家版本:1.6.3 Php版本:7.0.18 操作系统:Windows 10
这是来自composer.json
"require": {
"php": ">=5.3.3",
"composer/installers": "~1.0",
"fuel/docs": "dev-1.7/master",
"fuel/core": "dev-1.7/master",
"fuel/auth": "dev-1.7/master",
"fuel/email": "dev-1.7/master",
"fuel/oil": "dev-1.7/master",
"fuel/orm": "dev-1.7/master",
"fuel/parser": "dev-1.7/master",
"trait-orm-format": "dev-master",
"fuelphp/upload": "2.0.2",
"monolog/monolog": "1.5.*",
"michelf/php-markdown": "1.4.0",
"ext-mbstring": "^0.0.0"
}
答案 0 :(得分:1)
^0.0.0
版本约束意味着Composer不会安装0.0.*
版本之外的任何内容。
使用"ext-mbstring": "*"
作为版本约束,安装应正确传递。