无法创建新的Laravel项目。
C:UsersDevil>composer global require "laravel/installer"
Changed current directory to C:/Users/Devil/AppData/Roaming/Composer
[ErrorException]
file_put_contents(): Filename cannot be empty
global <command-name> [<args>]...
C:UsersDevil>laravel new blog
'laravel' is not recognized as an internal or external command,
operable program or batch file.
请帮助我
1-安装作曲家。如果尚未安装,这里是在Windows上安装作曲家的最简单方法
2-转到您的文件夹,通过命令行保存项目并运行此命令:composer create-project --prefer-dist laravel/laravel project-name
。这将创建一个新文件夹project-name
3-通过命令行访问project-name
文件夹并运行php artisan serve
4-打开浏览器并访问http://localhost:8000