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

Your requirements could not be resolved to an installable set of packalaravel10安装报错Your requirements could not be resolved to an installable set of packages._第1张图片ges.

 安装laravel10的时候报了好多错误,原因是我下载了最新版的php8.24,在php.ini一些的扩展没有打开,解决了扩展错误问题

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

切换镜像源


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

laravel10安装报错Your requirements could not be resolved to an installable set of packages._第2张图片

 可以看到安装OK了

参考连接:composer镜像源配置

你可能感兴趣的:(php,开发语言,laravel)