laravel较旧版本的新命令 [英] laravel new command with older version

查看:123
本文介绍了laravel较旧版本的新命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用以下命令创建新的Laravel项目时:

When I try to create new Laravel project using below commands:

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>终端下运行命令

I am running the command under XAMPP 5.6.28 > Terminal

PHP版本:5.6.28

PHP version: 5.6.28

Composer版本:1.3.2

Composer version: 1.3.2

Laravel安装程序版本:1.3.3

Laravel Installer version: 1.3.3

推荐答案

就像Laravel侧的bug:

Looks like a bug at Laravel's side:

https://github.com/laravel/installer/blob/master/src/NewCommand.php#L125

尝试在浏览器中下载:

http://cabinet.laravel.com/latest-52.zip

产生404.

这篇关于laravel较旧版本的新命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆