我想用作曲家安装特定版本的symfony:
composer create-project symfony/website-skeleton blog 4.2.9
composer create-project symfony/website-skeleton:4.2.9 blog
在 --help 中有:
php composer.phar create-project vendor/project target-directory [version]
php composer.phar create-project vendor/project:version target-directory
但是我收到一个错误:
[InvalidArgumentException]
Could not find package symfony/website-skeleton with version 4.2.9.
虽然它存在于 https://symfony.com/blog/symfony-4-2-9-released
它没有。检查 https://packagist.org/packages/symfony/website-skeleton您必须要求确切的版本,例如。4.2.9.1