Larave使用composer安装无反应,提示“Changed current directory to C:/Users/Administrator/AppData/Roaming/Composer”
程序员文章站
2022-06-17 11:26:19
按照Laravel文档的安装方式在windows上安装Laravel时,执行composer global require "laravel/installer"。 然后命令行就显示Changed current directory to C:/Users/Administrator/AppData ......
按照laravel文档的安装方式在windows上安装laravel时,执行composer global require "laravel/installer"。
然后命令行就显示changed current directory to c:/users/administrator/appdata/roaming/composer,然后一直没反应;这是由于composer的镜像下载地址连接不上,只需要修改composer的镜像下载地址为过国内的即可,具体操作如下:
执行:
composer config repo.packagist composer https://packagist.phpcomposer.com
执行后再重新执行laravel的安装即可;