当我尝试使用以下命令创建新项目时
laravel new project_name
我收到以下错误:
Crafting application...
In CurlFactory.php line 186:
cURL error 56: Recv failure: Connection was reset (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
new [--dev] [--force] [--] [<name>]
最佳答案
由于既没有资源也没有意愿进入导致这个问题的逻辑,我面对它并通过使用 Composer 取得了胜利,因此;
composer create-project --prefer-dist laravel/laravel project_name
希望对您有帮助。 请参阅Laravel Documentation .
关于php - 当我尝试创建新项目时出现curl错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52601542/