无法通过作曲家安装 laracast/实用程序



如果我有这样的包列表:

"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/generatorslaracasts/utilities(1.0.*)冲突

相关内容

  • 没有找到相关文章

最新更新