Larave使用composer安裝無反應,提示「Changed current directory to C:/Users/Administrator/AppData/Roaming/Compose

  按照Laravel文檔的安裝方式在windows上安裝Laravel時,執行composer global require "laravel/installer"。php

而後命令行就顯示Changed current directory to C:/Users/Administrator/AppData/Roaming/Composer,而後一直沒反應;這是因爲composer的鏡像下載地址鏈接不上,只須要修改composer的鏡像下載地址爲過國內的便可,具體操做以下:laravel

執行:windows

composer config repo.packagist composer https://packagist.phpcomposer.com執行後再從新執行Laravel的安裝便可;
相關文章
相關標籤/搜索