源码论坛,商业源码下载,尽在锦尚中国商业源码论坛

标题: 报错Could not find package topthink/think with stability stable.的解决方法 [打印本页]

作者: 欧阳锋    时间: 2022-11-25 15:04
标题: 报错Could not find package topthink/think with stability stable.的解决方法


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

安装thinkphp执行命令

  1. composer create-project topthink/think tp5 --prefer-dist
复制代码


报错

  1. [InvalidArgumentException]
  2. Could not find package topthink/think with stability stable.
复制代码


解决方法:

删除之前的镜像
  1. composer config -g --unset repos.packagist
复制代码


运行安装thinkphp命令
  1. composer create-project topthink/think tp5 --prefer-dist
复制代码





欢迎光临 源码论坛,商业源码下载,尽在锦尚中国商业源码论坛 (https://bbs.52jscn.com/) Powered by Discuz! X3.3