タイトル: Your requirements could not be resolved to an installable set of packages. ... To enable extensions, verify that they are enabled in your .ini files:
SEOタイトル: Your requirements could not be resolved to an installable set of packages. の原因と対処法
Your requirements could not be resolved to an installable set of packages. は、Composer が依存関係を満たせないときに出る代表的なエラーです。
エラー本文は長くなりがちですが、実際に見るべきなのは Problem n の内容と、不足している拡張や競合パッケージです。
発生条件 / 原因
- 必要な PHP 拡張が入っていない
- 要求バージョンと実際の PHP / パッケージ版が合っていない
- 依存パッケージ同士が競合している
よくある確認ポイント
Problem 1以降に何が足りないと出ているかext-mbstringなどの拡張不足がないかphp --iniでどの設定ファイルが読まれているか
対処の方向
不足している拡張を追加し、PHP バージョンや Composer の依存条件が合っているかを見直します。たとえば mbstring が不足しているなら、Linux では sudo apt install php-mbstring が候補になります。