小编En *_*ang的帖子

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

当我在 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": …
Run Code Online (Sandbox Code Playgroud)

updates symfony laravel composer-php

2
推荐指数
1
解决办法
1734
查看次数

标签 统计

composer-php ×1

laravel ×1

symfony ×1

updates ×1