php

composer安装thinkphp6失败,显示Failed to audit installed packages

2023-04-24

全局配置 修改为阿里云镜像

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/


# 取消全局配置

composer config -g --unset repos.packagist


//composer更新

composer self-update    //tp已经更新到支持composer2.0 


//composer 回滚到上一个版本

composer self-update --rollback


//清除composer缓存

composer clear-cache


//去除之前的composer镜像,无敌神坑

composer config -g --unset repos.packagist


//使用阿里云composer镜像,这也是官方推荐的,BUT就因为这,坑死我了

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/  


我不管怎么安装都是安装失败,提示信息是找不到最小的安全稳定版,怎么弄的是这样。然后我就把阿里云镜像去掉,就好了。虽然慢了点,但是安装成功了。

安装不成功的时候,删除之前的镜像,就用最原始镜像,就ok了


//去除之前的composer镜像,无敌神坑

composer config -g --unset repos.packagist