当我尝试使用以下命令创建新的 Laravel 项目时:
laravel new --5.2 blog
laravel new blog --5.2
给我以下错误:
Crafting application...
[GuzzleHttp\Exception\ClientException]
Client error: `GET http://cabinet.laravel.com/latest-52.zip` resulted in a `404 Not Found` response:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="robots" content="noindex,nofollow (truncated...)
new [--dev] [--5.2] [--] [<name>]
我在 XAMPP 5.6.28 > 终端下运行命令
PHP 版本:5.6.28
Composer 版本:1.3.2
Laravel 安装器版本:1.3.3
最佳答案
看起来像是 Laravel 方面的一个错误:
https://github.com/laravel/installer/blob/master/src/NewCommand.php#L125
尝试在浏览器中下载:
http://cabinet.laravel.com/latest-52.zip
导致 404。
关于php - 旧版本的 laravel 新命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42149219/