简体   繁体   中英

signature error while installing cakephp 3 with composer

I'm using composer to install the latest release of cakephp from the packagist repo. I'm following the exact procedure written in the docs but i'm getting this error.

  [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>]

在此处输入图片说明

Note : I've also tried self updating the composer.phar file but still of no use.

Any help would be appreciated.. Thanks

A typical reason for the man-in-the-middle attack warning is that composer cannot find the packagist repository.

However, in your case, it's probably because you have called

php composer.phar create-project --prefer-dist cakephp/app bookmarker

instead of

composer create-project --prefer-dist cakephp/app bookmarker

Which is the command you need to run in Windows, as per the Cookbook , once you've installed Composer using the Composer Windows Installer .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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