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