关于composer下载安装thinkphp报错 The “https://packagist.laravel-china.org/packages.json” file could not be d

关于composer下载安装thinkphp报错 The “https://packagist.laravel-china.org/packages.json” file could not be d

 

报错格式如上

阿里云composer全量镜像

全局配置 所有项目都会使用该镜像地址:

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

取消配置

composer config -g --unset repos.packagist

此时即可下载

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

最后设置的tp5.1是下载完以后文件名,最好是新创一个目录存储,以便后面的查找

关于composer下载安装thinkphp报错 The “https://packagist.laravel-china.org/packages.json” file could not be d

 

 

 

关于composer下载安装thinkphp报错 The “https://packagist.laravel-china.org/packages.json” file could not be d

 

上一篇:php composer 常用命令


下一篇:softmax与交叉熵