安装thinkphp 报错Could not find package topthink/think with stability stable.的解决方法

厍和颂
2023-12-01

安装thinkphp执行命令

composer create-project topthink/think tp5 --prefer-dist

报错

 [InvalidArgumentException]
Could not find package topthink/think with stability stable.

解决方法:

  1. 删除之前的镜像
composer config -g --unset repos.packagist
  1. 运行安装thinkphp命令
composer create-project topthink/think tp5 --prefer-dist

成功!!!

 类似资料: