无法通过composer安装laracasts / utilities

时间:2016-01-05 22:43:18

标签: laravel laravel-4 composer-php

如果我有这样的包列表:

"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
...

您能告诉我如何撰写包列表以便我可以运行编辑器更新吗?

1 个答案:

答案 0 :(得分:0)

你应该做的就是安装:

"laracasts/utilities": "1.0.*"

而不是

"laracasts/utilities": "~2.0"

另外,如果您将illuminate/support放在此composer.json仅用于laracasts/utilities,则不应将way/generators放入laracasts/utilities,因为它会与{{1}}和{{1}}冲突(1.0。*)