编程语言
首页 > 编程语言> > 关于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是下载完以后文件名,最好是新创一个目录存储,以便后面的查找

 

 

 

 

标签:laravel,tp5.1,下载安装,报错,composer,packagist,https,config
来源: https://www.cnblogs.com/kalistabc/p/13712999.html