Composer 已经安装但是当我想在 laravel 中使用 cmd 创建一个新项目时发现错误

Composer already installed but when i want to create a new project using cmd in laravel below error found

c:\wamp\www\hotels>composer create -project --prefer -dist laravel hotel "5.8.*"

[RuntimeException]
Invalid working directory specified, ist does not exist.

您的安装命令不正确Laravel

改变

composer create -project --prefer -dist laravel hotel "5.8.*"

composer create-project --prefer-dist laravel/laravel hotel "5.8.*"

参考:

Laravel -> Installing Laravel