简体   繁体   English

无法运行作曲家自我更新:“phar 签名与您下载的文件不匹配”

[英]Cannot run composer self-update: “The phar signature did not match the file you downloaded”

The system is windows10 Enterprise系统为windows10企业版

I installed composer;我安装了作曲家; its version is 2.0.8它的版本是 2.0.8

My symfony 4.4 does not launch with this version of composer;我的 symfony 4.4 无法使用此版本的作曲家启动; so I decided to downgrade composer with this command: composer self-update --1所以我决定用这个命令降级作曲家: composer self-update --1

But I get error:但我得到错误:

The phar signature did not match the file you downloaded, this means your public keys are outdated or that the phar file is corrupt/has been modified phar 签名与您下载的文件不匹配,这意味着您的公钥已过时或 phar 文件已损坏/已被修改

So how to fix this?那么如何解决这个问题呢?

Try executing:尝试执行:

composer self-update --update-keys

to update your public keys, and rerun the self-update command.更新您的公钥,然后重新运行self-update命令。

If that doesn't work, your phar file is really corrupted, and you'll need to download again.如果这不起作用,您的phar文件确实已损坏,您需要重新下载。 Just grab the appropriate file from the "Manual download" section of the download page and overwrite your local composer copy.只需从下载页面的“手动下载”部分获取适当的文件并覆盖您的本地作曲家副本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM