【问题标题】:How to Add 'Invoice Ninja" in Laravel 5.1?如何在 Laravel 5.1 中添加“发票忍者”?
【发布时间】:2015-11-03 20:12:35
【问题描述】:

“composer require hillelcoren/invoice-ninja”对我不起作用并出现以下错误:

Your requirements could not be resolved to an installable set of packages.

Problem 1
- hillelcoren/invoice-ninja v2.4.5 requires laravel/framework 5.0.* -> no matching package found.
- hillelcoren/invoice-ninja v2.4.4 requires laravel/framework 5.0.* -> no matching package found.
- hillelcoren/invoice-ninja v2.4.3 requires laravel/framework 5.0.* -> no matching package found.
- hillelcoren/invoice-ninja v2.4.2 requires laravel/framework 5.0.* -> no matching package found.
- hillelcoren/invoice-ninja v2.4.1 requires laravel/framework 5.0.* -> no matching package found.
- hillelcoren/invoice-ninja v2.4.0 requires laravel/framework 5.0.* -> no matching package found.
- Installation request for hillelcoren/invoice-ninja ^2.4 -> satisfiable by hillelcoren/invoice-ninja[v2.4.0, v2.4.1, v2.4.2, v2.4.3, v2.4.4, v2.4.5].

Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.

这是否意味着 NinjaInvoice 不支持新版本的 Laravel?请有人解决这个问题。

【问题讨论】:

  • 根据包的composer.json 文件,它只支持 Laravel 5.0.*,所以到目前为止你运气不好。我建议你打开一个issue 并请求 5.1 支持。

标签: laravel laravel-5 composer-php invoice invoice-ninja


【解决方案1】:

正如 Bogdan 所建议的,这个包仅适用于 Laravel 5.0.* 根据包 [composer.json][1]

在安装包时,他们可以拥有自己的依赖项或随后需要运行的包,在这种情况下,它被格式化为在 5.0.* 上运行,因此运行 Laravel 5.1 使其不兼容。

再次,正如 Bogdan 所建议的,记录问题是查看他们是否支持 5.1 的好方法。

查看未解决的问题,您已经完成此操作并打开了one

与此同时,您将不得不等待 5.1 支持或寻找类似的软件包。

博格丹给出的原始评论,但发布为官方答案的答案。

【讨论】:

    猜你喜欢
    • 2019-11-28
    • 2017-08-29
    • 1970-01-01
    • 2018-11-09
    • 1970-01-01
    • 2015-03-21
    • 1970-01-01
    • 2016-08-26
    • 1970-01-01
    相关资源
    最近更新 更多