[英]Can't install desired version of Laravel
I can't Install Laravel 6.0, when I run this command:当我运行此命令时,我无法安装 Laravel 6.0:
composer create-project laravel/laravel laravel_6.0
I want to install v6.0
but it comes with v5.8.17
.我想安装
v6.0
但它带有v5.8.17
。
How can I download the latest version of laravel?如何下载最新版本的laravel? My
Php
version is 7.2.10
我的
Php
版本是7.2.10
You will need to make sure your server meets the following requirements:您需要确保您的服务器满足以下要求:
And than First, download the Laravel installer using Composer:首先,使用 Composer 下载 Laravel 安装程序:
composer global require laravel/installer
Once installed, the laravel new
command will create a fresh Laravel installation in the directory you specify.安装后,
laravel new
命令将在您指定的目录中创建一个全新的 Laravel 安装。 Alternatively, you may also install Laravel by issuing the Composer create-project command in your terminal:或者,您也可以通过在终端中发出 Composer create-project 命令来安装 Laravel:
composer create-project --prefer-dist laravel/laravel blog
Or或者
composer create-project --prefer-dist laravel/laravel blog "6.0.*"
从今天开始,您可以使用以下命令安装 Laravel 版本 6:
composer create-project --prefer-dist laravel/laravel blog
I recently, updated all of my projects to laravel 6.0,我最近将我所有的项目更新到 Laravel 6.0,
I'm using, Ubuntu 19.04 by following command it works for my system我正在使用 Ubuntu 19.04 通过以下命令它适用于我的系统
composer create-project --prefer-dist laravel/laravel your-project-name
Here are some few ways to install laravel by specifying version这里有几种通过指定版本安装laravel的方法
composer create-project laravel/laravel=6.0 your-project-name --prefer-dist
composer create-project --prefer-dist laravel/laravel:6.0 your-project-name
composer create-project --prefer-dist laravel/laravel your-project-name "6.*"
It's not loaded into Packagist as an official version yet.它尚未作为正式版本加载到 Packagist 中。 Therefore, you need to use the "dev-develop" version which contains the latest unstable commit from GitHub:
因此,您需要使用包含来自 GitHub 的最新不稳定提交的“dev-develop”版本:
$ composer create-project laravel/laravel laravel_6.0 dev-develop
re setup the composer.重新设置作曲家。 Show php 7 version when installing.
安装时显示php 7版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.