laravel10安装报错Your requirements could not be resolved to an installable set of packages.

Your requirements could not be resolved to an installable set of packages.

安装laravel10的时候报了好多错误,首先php需要8.2,然而我使用的phpstudy 不支持,需要自行下载

安装后又涉及好多拓展需要手动打开,解决了扩展错误问题

继续安装又报了图片上的错误,然后开始搜搜,最后发现是镜像源的问题

切换镜像源

 
composer config -g repo.packagist composer https://packagist.org

 

最后安装成功