创建 LaraBBS 应用时报错 Composer\Repository\RepositorySecurityException 怎么解决?
vagrant@homestead:~/Code$ composer config -g repo.packagist composer https://packagist.laravel-china.org
vagrant@homestead:~/Code$ composer create-project laravel/laravel larabbs --prefer-dist "5.5.*"
Installing laravel/laravel (v5.5.28)
- Installing laravel/laravel (v5.5.28): Loading from cache
Created project in larabbs
> [@php](https://learnku.com/users/10050) -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies (including require-dev)
[Composer\Repository\RepositorySecurityException]
The contents of https://packagist.laravel-china.org/p/illuminate/support%24e383b6a14d7c62cdfaa02bc808877cc0465ca491cf4c337ae1a30cf7e5b45f15.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 REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]
vagrant@homestead:~/Code$
推荐文章: