windows10 安装 composer

  windows10 安装 composer

  1.下载Windows版官方地址:https://getcomposer.org/Composer-Setup.exe

  2.国内 composer 镜像地址(阿里云):https://developer.aliyun.com/composer

  3.全局配置(推荐):

      1)所有项目都会使用该镜像地址:

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

  2)取消配置:

composer config -g --unset repos.packagist

  4.项目配置:

      1)仅修改当前工程配置,仅当前工程可使用该镜像地址:

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

  2)取消配置:

composer config --unset repos.packagist

  

  5.调试:

  composer 命令增加 -vvv 可输出详细的信息,命令如下:

composer -vvv require alibabacloud/sdk

  

 

windows10 安装 composer

上一篇:junit4单元测试报错Invalid project specified


下一篇:Java kotlin报错The minCompileSdk (31) specified in a dependency's AAR metadata解决方法