Laravel installer keeps installing 5.5 instead of 5.6

后端 未结 2 1916
無奈伤痛
無奈伤痛 2020-12-07 02:36

I installed php 7.2.2 / apache 2.4 and mysql-5.7 on windows 10.

I want to install laravel 5.6

first:

1.  composer clear-cache
2.  composer u         


        
相关标签:
2条回答
  • 2020-12-07 03:11

    You have to do:

    composer create-project laravel/laravel your-project-name-here dev-develop
    
    0 讨论(0)
  • 2020-12-07 03:14

    Laravel 5.6 was not officially released until today (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.

    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.

    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:

    composer create-project --prefer-dist laravel/laravel blog "5.5.*"

    0 讨论(0)
提交回复
热议问题