laravel new command with older version

守給你的承諾、 提交于 2019-12-31 03:43:08

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!