更新composer时报错:Root composer.json requires PHP extension ext-http * but it is missing from your system. Install or enable PHP’s http extension
错误原文:
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
Root composer.json requires PHP extension ext-http * but it is missing from your system. Install or enable PHP’s http extension.
To enable extensions, verify that they are enabled in your .ini files:
D:xxx\php\74\php.ini
You can also run php —ini inside terminal to see which files are used by PHP in CLI mode.
解决办法:
将composer.json里的”ext-http”: ““ 删除
将composer.lokc里的”ext-http”: ““ 删除