按照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的安裝便可;