2015-11-03 17 views
0

?’:如何添加“发票忍者作曲家需要hillelcoren /发票忍者‘是不是为我工作,给下面的错误”,在Laravel 5.1

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的newr版本?请人解决问题。

+0

根据软件包的['composer.json'](https://github.com/hillelcoren/invoice-ninja/blob/master/composer.json#L17)文件,它只支持Laravel 5.0。* ,所以你到目前为止运气不好。我建议你用这个包打开一个[issue](https://github.com/hillelcoren/invoice-ninja/issues)并要求5.1支持。 – Bogdan

回答

0

由于波格丹指出,这个包只在Laravel 5.0可用。*根据包装[composer.json][1]

当涉及到安装包,也可以有他们自己的依赖关系或者随后需要运行的软件包,在这种情况下,它将被格式化为运行5.0。*,因此运行Laravel 5.1会导致它不兼容。

同样,正如Bogdan所说,记录问题是查看它们是否可以支持5.1的好方法。

看着这些未解决的问题,您已经完成了这项工作并打开了one

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

Bogdan给出的原创评论,然而发布作为给出正式答案的答案。