Laravel 安装程序不断安装 5.5 而不是 5.6
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/48612380/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Laravel installer keeps installing 5.5 instead of 5.6
提问by ali ali
I installed php 7.2.2 / apache 2.4 and mysql-5.7 on windows 10.
我在 Windows 10 上安装了 php 7.2.2 / apache 2.4 和 mysql-5.7。
I want to install laravel 5.6
我想安装laravel 5.6
first:
第一的:
1. composer clear-cache
2. composer update
3. composer global require "laravel/installer"
php -v:
php -v:
PHP 7.2.2 (cli) (built: Jan 31 2018 19:31:17) ( ZTS MSVC15 (Visual C++ 2017) x64 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
and Laravel Installer 2.0.1
和 Laravel Installer 2.0.1
I try this (according to the laravel doc 5.6):
我试试这个(根据laravel doc 5.6):
composer create-project --prefer-dist laravel/laravel blog
But it install laravel 5.5.28
但是它安装了laravel 5.5.28
Why does composer keep installing laravel 5.5?
为什么作曲家不断安装laravel 5.5?
采纳答案by patricus
Laravel 5.6 was not officially released until today (2018-02-07).
Laravel 5.6 直到今天(2018-02-07)才正式发布。
Now that it has been officially released, the Laravel installer and the composer create-project will use 5.6, instead of 5.5.
现在已经正式发布,Laravel 安装程序和 composer create-project 将使用 5.6,而不是 5.5。
If you'd like to install a version that is not the current version, you need to specify the version to install as the last parameter to composer create-project
.
如果要安装不是当前版本的版本,则需要将要安装的版本指定为 的最后一个参数composer create-project
。
For example, now that 5.6 has been released and is the current version, if you wanted to create a 5.5 project, you would add "5.5" to the composer statement:
例如,现在 5.6 已经发布并且是当前版本,如果您想创建一个 5.5 项目,您可以在 composer 语句中添加“5.5”:
composer create-project --prefer-dist laravel/laravel blog "5.5.*"
composer create-project --prefer-dist laravel/laravel blog "5.5.*"
回答by Prince Lionel N'zi
You have to do:
你必须要做:
composer create-project laravel/laravel your-project-name-here dev-develop