-- 创造无限可能

更新compoer报错:Root composer.json requires PHP extension ext-http * but it is missing from your system. Install or enable PHP's http extension

2023-12-19 09:32:35
1427 人浏览 0 人点赞
有用,点赞支持一下

更新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”: “
“ 删除