gpt4 book ai didi

symfony - Composer 更新 "man-in-the-middle attack"错误

转载 作者:太空宇宙 更新时间:2023-11-03 16:42:50 24 4
gpt4 key购买 nike

我克隆了我的一个本地项目并执行了 composer update 但我收到了一些错误:

[Composer\Repository\RepositorySecurityException]
The contents of http://packagist.org/p/friendsofsymfony/facebook-bundle$f1d8c88e21c3636c7d6d8d66f3e98ce2c83de942d1ab652f76e8c4f82e2c6363.js on do not match its signature. This should indicate a man-in-the-middle attack. Try running composer again and report this if you think it is a mistake.

我也尝试清除 Composer 缓存,但没有任何效果。

有人可以给我一个问题背后的想法,以便对我有所帮助。

Composer 版本:b482ebe0ca18321d9322bd913af73c1c55adebf1

最佳答案

在我的场景中,将以下行添加到 composer.json 解决了这个问题。

"repositories": {
"packagist": { "url": "https://packagist.org", "type": "composer" }
}

编辑

如果你有不止一个仓库:

  "repositories": [
{ "type": "composer", "url": "https://packagist.org" },
{ "type": "git", "url": "git@bitbucket.org:repo_name/proj_name.git" }
],

关于symfony - Composer 更新 "man-in-the-middle attack"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18977581/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com