我刚跑完
$ 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.*"
,那么其他更新就可以正常运行。