Composer 无法安装依赖项
Composer can not install dependencies
我有一个 FuelPhp 项目,我正在尝试通过 Composer 安装依赖项。
当我 运行 composer 在命令行上安装时,出现以下错误;
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 扩展?
作曲家Version:1.6.3
Php Version:7.0.18
OS:Windows10
本文来自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.0.0
版本限制意味着 Composer 不会安装超过 0.0.*
版本的任何东西。
使用 "ext-mbstring": "*"
作为版本约束并且安装应该正确通过。
我有一个 FuelPhp 项目,我正在尝试通过 Composer 安装依赖项。 当我 运行 composer 在命令行上安装时,出现以下错误;
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 扩展?
作曲家Version:1.6.3 Php Version:7.0.18 OS:Windows10
本文来自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.0.0
版本限制意味着 Composer 不会安装超过 0.0.*
版本的任何东西。
使用 "ext-mbstring": "*"
作为版本约束并且安装应该正确通过。