Composer更新例外例如需要omnipay / common

时间:2017-08-07 11:44:42

标签: composer-php omnipay

我刚跑完

$ composer self-update

在Windows 7上,但是当我运行

$ composer update 

更新依赖项我收到以下消息:

Loading composer repositories with package information
Updating dependencies (including require-dev)

  [Composer\DependencyResolver\SolverProblemsException]
    Problem 1
      - Installation request for laravel/framework 5.4.* -> satisfiable by la
  ravel/framework[5.4.x-dev].
      - laravel/framework 5.4.x-dev requires doctrine/inflector ~1.1.0 -> no
  matching package found.
    Problem 2
      - Installation request for omnipay/omnipay 2.* -> satisfiable by omnipa
  y/omnipay[2.3.x-dev].
      - omnipay/omnipay 2.3.x-dev requires omnipay/common ~2.3 -> no matching
   package found.
    Problem 3
      - Installation request for omnipay/stripe ~2.0 -> satisfiable by omnipa
  y/stripe[V2.4.7].
      - omnipay/stripe V2.4.7 requires omnipay/common ~2.0 -> no matching pac
  kage found.
    Problem 4
      - Installation request for omnipay/paypal ~2.0 -> satisfiable by omnipa
  y/paypal[v2.6.3].
      - omnipay/paypal v2.6.3 requires omnipay/common ~2.0 -> no matching pac
  kage found.
    Problem 5
      - Installation request for omnipay/mollie 3.* -> satisfiable by omnipay
  /mollie[3.2.x-dev].
      - omnipay/mollie 3.2.x-dev requires omnipay/common ~2.2 -> no matching
  package found.
    Problem 6
      - laravel/framework 5.4.x-dev requires doctrine/inflector ~1.1.0 -> no
  matching package found.
      - laravelcollective/html 5.4.x-dev requires illuminate/http 5.4.* -> sa
  tisfiable by laravel/framework[5.4.x-dev].
      - Installation request for laravelcollective/html * -> satisfiable by l
  aravelcollective/html[5.4.x-dev].
  Potential causes:
   - A typo in the package name
   - The package is not available in a stable-enough version according to you
  r minimum-stability setting
     see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for mor
  e details.
  Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further
  common problems.

特别要更新omnipay/stripe。我的composer.json在其require部分中包含了以下内容:omnipay:

"omnipay/omnipay": "2.*",
"omnipay/stripe": "~2.0",
"omnipay/common": "*",

此外,最低稳定性设置为dev

"minimum-stability": "dev"

为了尝试解决引用Laravel的第一个错误,我尝试将"doctrine/inflector": "*"添加到require的{​​{1}}部分,并删除了composer.json文件,但错误表示无法找到包裹。 This post似乎表明学说需要PHP 7和Laravel 5.4,所以可能是因为我正在运行PHP 5.6

似乎这是一个与Laravel相关的问题,因为如果我从composer.lock删除"laravel/framework": "5.4.*",那么其他更新就可以正常运行。

0 个答案:

没有答案