我无法使用Composer安装特定版本的Symfony [英] I cant install a Specific version of Symfony using Composer
问题描述
我想安装Symfony 4.0.6版本!与cmd一起使用作曲家 当我写
I want to install Symfony 4.0.6 version! using composer with cmd when I write
composer create-project Symfony/framework-standard-edition Stage_App "4.0.*"
也尝试过
composer create-project Symfony/skeleton Stage_App "4.0.*"
都安装了Symfony 5.0.2
and both install Symfony 5.0.2
注意:我不想使用最新版本!我只想使用4.0.6
note: I don't want to work with the last version! i just want to work with 4.0.6
如何安装该版本?
推荐答案
由于不推荐使用symfony版本的4.0.*
,因此symfony/skeleton
在5.0
版本上创建了一个项目.
since the 4.0.*
of symfony version is deprecated, the symfony/skeleton
creates a project on the 5.0
version.
由于始终支持4.4.*
版本,因此您需要升级到4.4
版本并安装项目,如下所示:
Since 4.4.*
version is always supported, you need to upgrade to 4.4
version and install project like this:
composer create-project symfony/skeleton Stage_App "4.4.*"
如果您确实想要获取4.0.6
版本,则可以始终更新composer.json中的所有symfony
依赖项,并使用composer update symfony/*
更新它们,但是由于文件夹体系结构已更改,因此您将遇到其他错误,因此我不会推荐它.
If you really want to get the 4.0.6
version you could always update all symfony
dependencies in the composer.json and update them with composer update symfony/*
but you will have other errors because folder architecture has changed so I do not recommend it.
这篇关于我无法使用Composer安装特定版本的Symfony的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!