Skip to content

composer install problem #798

Open
Open
@sasha6806

Description

@sasha6806

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions