当我运行composer update
时,我遇到了作曲家的问题。
我的composer.json
文件的相关位如下所示:
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.1.*",
"omnipay/common": "~2.0",
"omnipay/authorizenet": "~2.0",
"omnipay/firstdata": "~2.0",
"omnipay/stripe": "~2.0",
"omnipay/paypal": "~2.0"
},
"minimum-stability": "dev",
当我运行composer update
时,收到以下错误:
[Composer\DependencyResolver\SolverProblemsException]
Problem 1
- The requested package omnipay/common could not be found in any version, there may be a typo in the package name.
Problem 2
- Installation request for omnipay/authorizenet ~2.0 -> satisfiable by omnipay/authorizenet[2.5.0].
- omnipay/authorizenet 2.5.0 requires omnipay/common ~2.2 -> no matching package found.
Problem 3
- Installation request for omnipay/firstdata ~2.0 -> satisfiable by omnipay/firstdata[v2.3.0].
- omnipay/firstdata v2.3.0 requires omnipay/common ~2.0 -> no matching package found.
Problem 4
- Installation request for omnipay/stripe ~2.0 -> satisfiable by omnipay/stripe[v2.4.3].
- omnipay/stripe v2.4.3 requires omnipay/common ~2.0 -> no matching package found.
Problem 5
- Installation request for omnipay/paypal ~2.0 -> satisfiable by omnipay/paypal[v2.6.3].
- omnipay/paypal v2.6.3 requires omnipay/common ~2.0 -> no matching package found.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details. Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
我不知道应该采取什么方向来解决这个问题,或者为什么它首先发生。我几个月前上次运行作曲家更新,它没有问题。
答案 0 :(得分:0)
尝试运行此命令,我认为composer将更新您的依赖项。
composer require omnipay/omnipay
我想问题是包名。您可以在composer.json文件中添加omnipay / omnipay作为包名称。
答案 1 :(得分:0)
我希望你一次读完所有错误。您找到的所有套餐未找到或未获得或其所需的更新因此,只需删除所有omipay packge
表单Coposer.json
以及从ServiceProvider
中移除config/app.php
< / p>
示例删除此代码表 Composer.json
"omnipay/common": "~2.0",
"omnipay/authorizenet": "~2.0",
"omnipay/firstdata": "~2.0",
"omnipay/stripe": "~2.0",
"omnipay/paypal": "~2.0"
然后尝试从Here
更新您的Composer
然后再安装新版本包
我希望它为你的工作!!
或强>
关注此事:
从以下位置再次安装包
https://packagist.org/packages/omnipay/paypal
和强>
答案 2 :(得分:0)
无需特别要求使用omnipay / common或omnipay / omnipay(无论如何都是虚拟包装)。
(1)从composer.json
中删除所有的omnipay / *行(2)你需要将composer.json带入正确版本的作曲家命令:
composer require omnipay/authorizenet
composer require omnipay/firstdata
composer require omnipay/stripe
composer require omnipay/paypal