我使用composer从packagist repo安装最新版本的cakephp。我按照文档中的确切步骤进行操作,但是我收到了此错误。
[Composer\Repository\RepositorySecurityException]
The contents of http://packagist.org/p/provider-2013%245eabcb75d94b428ce510270878b2b10a81e00b8afaaf4d5e9896b274ec0fbeaa.json 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.
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]
注意:我还尝试过自动更新composer.phar文件,但仍无用。
任何帮助将不胜感激..谢谢
答案 0 :(得分:0)
中间人攻击警告的典型原因是作曲家无法找到packagist存储库。
但是,在你的情况下,可能是因为你已经打电话了
php composer.phar create-project --prefer-dist cakephp/app bookmarker
而不是
composer create-project --prefer-dist cakephp/app bookmarker
使用Cookbook安装Composer后,根据Composer Windows Installer,您需要在Windows中运行的命令。