composer安装tp5提示:Could not find package topthink/think with version 5.1.*.

文章描述:

[InvalidArgumentException]Could not find package topthink/think with version 5.1.*.

最终发现问题是,镜像地址问题。从而导致无法找到框架包

# 解决方案,切换 composer 镜像地址

# 阿里云镜像

 

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

 

发布时间:2023/04/29

发表评论