问题
When I try to create new Laravel project using below commands:
laravel new --5.2 blog
laravel new blog --5.2
Gives me following error:
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>]
I am running the command under XAMPP 5.6.28 > Terminal
PHP version: 5.6.28
Composer version: 1.3.2
Laravel Installer version: 1.3.3
回答1:
Looks like a bug at Laravel's side:
https://github.com/laravel/installer/blob/master/src/NewCommand.php#L125
Trying to download in the browser:
http://cabinet.laravel.com/latest-52.zip
results in a 404.
来源:https://stackoverflow.com/questions/42149219/laravel-new-command-with-older-version