composer / composer/packagist

composer install problem

Open
#798 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
1.8k
Forks
488
Avg merge
2d 12h
Merged PRs (30d)
24

Description

firstly, I create a new project with using composer:

`composer create-project --prefer-dist yiisoft/yii2-app-advanced yii2-advanced`

Content-Length mismatch
http://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
Installing yiisoft/yii2-app-advanced (2.0.12)

Installing yiisoft/yii2-app-advanced (2.0.12): Downloading (100%)
Created project in yii2-advanced
Loading composer repositories with package information
Updating dependencies (including require-dev)
Content-Length mismatch
http://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
[Composer\Repository\RepositorySecurityException]
The contents of **https://packagist.org/p/provider-latest%24f4920536ed7674e5fe07492a03dbcaf1f2cd45be677ba1b1ead4d016fc4ec034.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]

and then I run
`composer install`

Loading composer repositories with package information
Updating dependencies (including require-dev)
Content-Length mismatch
http://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date

[Composer\Downloader\TransportException]
The "http://packagist.org/p/provider-2017-04%2407bf4f4d66e817fcd640515d7465340434eb0fac9a99e9e93978c4985e056be1.json" file could not be downloaded (HTTP/1.1 302 Found)

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] []...

In the end, I search the json file in the browser. It returns a 404.
http://packagist.org/p/provider-2017-04%2407bf4f4d66e817fcd640515d7465340434eb0fac9a99e9e93978c4985e056be1.json

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.