如果我有这样的包列表:
"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
...
您能告诉我如何撰写包列表以便我可以运行编辑器更新吗?
答案 0 :(得分:0)
你应该做的就是安装:
"laracasts/utilities": "1.0.*"
而不是
"laracasts/utilities": "~2.0"
另外,如果您将illuminate/support
放在此composer.json
仅用于laracasts/utilities
,则不应将way/generators
放入laracasts/utilities
,因为它会与{{1}}和{{1}}冲突(1.0。*)