我尝试启动Symfony时有问题,错误是:
composer require server --dev
Some Symfony Flex features may not work as expected: your version of Composer is too old
Please upgrade using https://getcomposer.org/
我尝试更新作曲家,但是我找不到这样做的方法,在Composer文档中,我遵循了这些步骤,但是:
php -r "if (hash_file('SHA384', 'composer-setup.php') === '52cb7bbbaee720471e3b34c8ae6db53a38f0b759c06078a80080db739e4dcab6') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
Installer corrupt
所以,我处于错误循环中,我该怎么办?
(我在Ubuntu工作(
当然我尝试了:
composer self-update
[InvalidArgumentException]
Command "self-update" is not defined.
命令 self-update
i仅在您以phar的形式安装作曲家时可用,而不是全局项目中的依赖性或通过apt。
因此,您需要卸载composer
并用phar重新安装它,然后才能使用自uptate
文档