使用软件包mailjet / laravel-mailjet的Laravel Framework版本问题

时间:2018-11-16 10:31:46

标签: laravel laravel-5 mailjet

我在使用mailjet / laravel-mailjet时遇到问题,似乎是版本问题。 我使用的是Laravel Framework 5.6.33,我得到了

Can only install one of: laravel/framework[v5.6.39, 5.4.x-dev].

我已经更改了composer.json,现在,我正在使用Laravel Framework 5.6.39,但是我仍然遇到相同的问题

 $ php artisan --version
Laravel Framework 5.6.39

当我尝试安装mailjet / laravel-mailjet时有答案

$ composer require mailjet/laravel-mailjet
Using version ^1.1 for mailjet/laravel-mailjet
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Can only install one of: laravel/framework[v5.6.39, 5.4.x-dev].
    - Can only install one of: laravel/framework[5.4.x-dev, v5.6.39].
    - Can only install one of: laravel/framework[5.4.x-dev, v5.6.39].
    - mailjet/laravel-mailjet 1.1.0 requires laravel/framework 5.4.* -> satisfiable by laravel/framework[5.4.x-dev].
    - Installation request for mailjet/laravel-mailjet ^1.1 -> satisfiable by mailjet/laravel-mailjet[1.1.0].
    - Installation request for laravel/framework 5.6.39 -> satisfiable by laravel/framework[v5.6.39].

1 个答案:

答案 0 :(得分:0)

第四个类似的解释。

mailjet/laravel-mailjet 1.1.0 requires laravel/framework 5.4.*

因此,您不能使用v5.6.39,只能使用5.4.*