如果我有这样的包列表:
"require": {
"laravel/framework": "4.2.*",
"illuminate/support": "~5.0",
"way/generators": "2.*",
"intervention/image": "~2.1",
"doctrine/inflector": "~1.0",
"doctrine/dbal": "~2.3",
"laracasts/utilities": "~2.0"
},
或者"illuminate/support": "~4.0"
,那么我得到错误:
- way/generators 2.6.1 requires illuminate/support ~4.0 -> no matching package found.
- way/generators 2.6 requires illuminate/support ~4.1 -> no matching package found.
- way/generators 2.5 requires illuminate/support ~4.1 -> no matching package found.
... and so on
所以,如果我把包改成"illuminate/support": ">4"
,我得到的是:
- Conclusion: don't install laravel/framework v4.2.18
- Conclusion: remove laravel/framework v4.2.17
- Conclusion: don't install laravel/framework v4.2.17
...
- laracasts/utilities 2.0 requires illuminate/support ~5.0
...
- don't install illuminate/support v5.0.0|don't install laravel/framework v4.2.0
...
你能告诉我如何编写包列表,以便我可以运行composer更新吗?
您应该做的可能是安装:
"laracasts/utilities": "1.0.*"
而不是
"laracasts/utilities": "~2.0"
此外,如果您将illuminate/support
放在此处仅用于laracasts/utilities
,则不应将其放在composer.json
中,因为它将与way/generators
和laracasts/utilities
(1.0.*)冲突