帮助大家安装Laravel 5,
我使用的是Windows 7 Home Premium操作系统
我使用Git Bash作为我的终端
我运行了以下命令:
composer global require "laravel/installer=~1.1"
安装成功了
但是当我运行时
laravel new blog
它显示以下信息:
Crafting application...
'composer' is not recognized as an internal or external command, operable program or batch file.
Application ready! Build something amazing.
出现了错误信息“'composer'未被识别...”。
为什么会出现这种情况呢?
Composer命令已经可以正常使用,但是还是出现了错误。:(
我已经将路径“;C:\Users\username\AppData\Roaming\Composer\vendor\bin”添加到了系统变量中。