Composer 更新 - 无法在 http://packagist.org 中加载包 shopware/shopware:

En *_*ang 2 updates symfony laravel composer-php

当我在 Laravel 5.1 上进行作曲家更新时,出现此错误

> Downloading http://packagist.org/p/symfony/polyfill-mbstring$a9a5f6e4a8af44008f50a8c0059a6d1a61b1f692627fb41f0cc1f3e8bbfb7205.json
> Writing /root/.composer/cache/repo/https---packagist.org/provider-symfony$polyfill-mbstring.json into cache



  [RuntimeException]
  Could not load package shopware/shopware in http://packagist.org: [UnexpectedValueException] Could not parse version constraint ~v
  2.0.0-rc1: Invalid version string "~v2.0.0-rc1"




[UnexpectedValueException]
  Could not parse version constraint ~v2.0.0-rc1: Invalid version string "~v2.0.0-rc1"
Run Code Online (Sandbox Code Playgroud)

当我在缓存文件夹上追踪它时

"require-dev": {
                    "phpunit\/phpunit": "~4.5",
                    "phpunit\/dbunit": "~1.3",
                    "behat\/mink": "~1.7",
                    "behat\/mink-extension": "~2.1",
                    "behat\/mink-goutte-driver": "~1.2",
                    "behat\/mink-selenium2-driver": "~1.3",
                    "symfony\/dom-crawler": "~2.8",
                    "behat\/behat": "~3.1",
                    "sensiolabs\/behat-page-object-extension": "~v2.0.0-rc1"
                },
Run Code Online (Sandbox Code Playgroud)

它不在我的 require 包上:composer.json 它来自 symfony/polyfill-mbstring 但为什么在 json 文件上他们得到这个?

"packages": {
    "shopware\/shopware": {
        "5.2.x-dev": {
            "name": "shopware\/shopware",
            "description": "Shopware is the next generation of open source e-commerce software made in Germany",
            "keywords": ["shop", "shopware"],
            "homepage": "http:\/\/www.shopware.com",
            "version": "5.2.x-dev",
            "version_normalized": "5.2.9999999.9999999-dev",
            "license": ["AGPL-3.0", "proprietary"],
            "authors": [],
            "source": {
                "type": "git",
                "url": "https:\/\/github.com\/shopware\/shopware.git",
                "reference": "4c4817979a98144e57d9eebc5aa166795e378a1c"
            },
            "dist": {
                "type": "zip",
                "url": "https:\/\/api.github.com\/repos\/shopware\/shopware\/zipball\/4c4817979a98144e57d9eebc5aa166795e378a1c",
                "reference": "4c4817979a98144e57d9eebc5aa166795e378a1c",
                "shasum": ""
            },
            "type": "project",
            "time": "2016-03-29T06:54:10+00:00",
            "autoload": {
                "psr-0": {
                    "Doctrine\\Common\\Proxy\\AbstractProxyFactory": "engine\/Library\/",
                    "Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister": "engine\/Library\/",
                    "Shopware": "engine\/",
                    "Enlight": "engine\/Library\/",
                    "Zend": "engine\/Library\/",
                    "JSMin": "engine\/Library\/minify\/"
                },
                "classmap": ["engine\/Shopware\/Core\/"],
                "files": ["engine\/Shopware\/Application.php"]
            },
            "include-path": ["engine\/Library\/"],
            "require": {
                "php": ">=5.5.9",
                "ext-curl": "*",
                "ext-mbstring": "*",
                "ext-gd": "*",
                "doctrine\/common": "2.5.1",
                "doctrine\/dbal": "2.5.1",
                "doctrine\/orm": "2.5.1",
                "beberlei\/assert": "2.4.0",
                "zendframework\/zend-escaper": "2.5.1",
                "oyejorge\/less.php": "1.7.0.5",
                "guzzlehttp\/guzzle": "5.1.0",
                "egulias\/email-validator": "1.2.9",
                "symfony\/http-kernel": "2.8.0",
                "symfony\/config": "2.8.0",
                "symfony\/dependency-injection": "2.8.0",
                "symfony\/validator": "2.8.0",
                "symfony\/filesystem": "2.8.0",
                "symfony\/finder": "2.8.0",
                "symfony\/console": "2.8.0",
                "symfony\/polyfill-php56": "1.0.0",
                "monolog\/monolog": "1.17.2",
                "doctrine\/cache": "1.6.0",
                "paragonie\/random_compat": "1.1.5",
                "symfony\/form": "2.8.0",
                "league\/flysystem": "1.0.18",
                "elasticsearch\/elasticsearch": "2.1.5",
                "ongr\/elasticsearch-dsl": "v2.0.0"
            },
            "require-dev": {
                "phpunit\/phpunit": "~4.5",
                "phpunit\/dbunit": "~1.3",
                "behat\/mink": "~1.7",
                "behat\/mink-extension": "~2.1",
                "behat\/mink-goutte-driver": "~1.2",
                "behat\/mink-selenium2-driver": "~1.3",
                "symfony\/dom-crawler": "~2.8",
                "behat\/behat": "~3.1",
                "sensiolabs\/behat-page-object-extension": "~v2.0.0-rc1"
            },
            "replace": {
                "symfony\/polyfill-php55": "~1.0",
                "symfony\/polyfill-mbstring": "~1.0"
            },
            "uid": 588566
        }, bla ...............
Run Code Online (Sandbox Code Playgroud)

VaL*_*VaL 5

我遇到了完全相同的错误

./composer.phar selfupdate解决问题,对我来说。