使用Laravel 4.1安装Rocketeer,导致编辑器更新错误

时间:2014-04-24 23:28:49

标签: php laravel laravel-4 composer-php

我正在尝试使用我的Laravel 4.1项目设置Rocketeer(https://github.com/Anahkiasen/rocketeer/wiki/Getting-started)。根据文档,我补充说:

"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/changwuf31/remote"
    }
    ]

到我的composer.json文件的末尾。

在必填字段中,我补充道:

"illuminate/remote": "dev-master"

当我跑步时,我得到:

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

  Problem 1
    - Conclusion: remove laravel/framework 4.1.x-dev
    - Conclusion: don't install laravel/framework 4.1.x-dev
    - Conclusion: don't install laravel/framework v4.1.28
    - Conclusion: don't install laravel/framework v4.1.27
    - Conclusion: don't install laravel/framework v4.1.26
    - Conclusion: don't install laravel/framework v4.1.25
    - Conclusion: don't install laravel/framework v4.1.24
    - Conclusion: don't install laravel/framework v4.1.23
    - Conclusion: don't install laravel/framework v4.1.22
    - Conclusion: don't install laravel/framework v4.1.21
    - Conclusion: don't install laravel/framework v4.1.20
    - Conclusion: don't install laravel/framework v4.1.19
    - Conclusion: don't install laravel/framework v4.1.18
    - Conclusion: don't install laravel/framework v4.1.17
    - Conclusion: don't install laravel/framework v4.1.16
    - Conclusion: don't install laravel/framework v4.1.15
    - Conclusion: don't install laravel/framework v4.1.14
    - Conclusion: don't install laravel/framework v4.1.13
    - Conclusion: don't install laravel/framework v4.1.12
    - Conclusion: don't install laravel/framework v4.1.11
    - Conclusion: don't install laravel/framework v4.1.10
    - Conclusion: don't install laravel/framework v4.1.9
    - Conclusion: don't install laravel/framework v4.1.8
    - Conclusion: don't install laravel/framework v4.1.7
    - Conclusion: don't install laravel/framework v4.1.6
    - Conclusion: don't install laravel/framework v4.1.5
    - Conclusion: don't install laravel/framework v4.1.4
    - Conclusion: don't install laravel/framework v4.1.3
    - Conclusion: don't install laravel/framework v4.1.2
    - Conclusion: don't install laravel/framework v4.1.1
    - illuminate/remote dev-master requires illuminate/support 4.2.* -> satisfiable by laravel/framework[4.2.x-dev], illuminate/support[4.2.x-dev].
    - illuminate/remote dev-master requires illuminate/support 4.0.x -> satisfiable by laravel/framework[4.0.x-dev], illuminate/support[4.0.x-dev, v4.0.0, v4.0.0-BETA2, v4.0.0-BETA3, v4.0.0-BETA4, v4.0.1, v4.0.10, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8, v4.0.9].
    - don't install illuminate/support 4.2.x-dev|don't install laravel/framework v4.1.0
    - Can only install one of: laravel/framework[v4.1.0, 4.2.x-dev].
    - Can only install one of: laravel/framework[v4.1.0, 4.0.x-dev].
    - don't install illuminate/support 4.0.x-dev|don't install laravel/framework v4.1.0
    - don't install illuminate/support v4.0.0|don't install laravel/framework v4.1.0
    - don't install illuminate/support v4.0.0-BETA2|don't install laravel/framework v4.1.0
    - don't install illuminate/support v4.0.0-BETA3|don't install laravel/framework v4.1.0
    - don't install illuminate/support v4.0.0-BETA4|don't install laravel/framework v4.1.0
    - don't install illuminate/support v4.0.1|don't install laravel/framework v4.1.0
    - don't install illuminate/support v4.0.10|don't install laravel/framework v4.1.0
    - don't install illuminate/support v4.0.2|don't install laravel/framework v4.1.0
    - don't install illuminate/support v4.0.3|don't install laravel/framework v4.1.0
    - don't install illuminate/support v4.0.4|don't install laravel/framework v4.1.0
    - don't install illuminate/support v4.0.5|don't install laravel/framework v4.1.0
    - don't install illuminate/support v4.0.6|don't install laravel/framework v4.1.0
    - don't install illuminate/support v4.0.7|don't install laravel/framework v4.1.0
    - don't install illuminate/support v4.0.8|don't install laravel/framework v4.1.0
    - don't install illuminate/support v4.0.9|don't install laravel/framework v4.1.0
    - Installation request for laravel/framework 4.1.* -> satisfiable by laravel/framework[4.1.x-dev, v4.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.13, v4.1.14, v4.1.15, v4.1.16, v4.1.17, v4.1.18, v4.1.19, v4.1.2, v4.1.20, v4.1.21, v4.1.22, v4.1.23, v4.1.24, v4.1.25, v4.1.26, v4.1.27, v4.1.28, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9].
    - Installation request for illuminate/remote dev-master -> satisfiable by illuminate/remote[dev-master].

我的composer.json看起来像这样:

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "require": {
        "laravel/framework": "4.1.*",
        "way/generators": "2.*",
        "madewithlove/laravel-oauth2": "0.4.*",
        "nesbot/Carbon": "*",
        "illuminate/remote": "dev-master"
    },
    "autoload": {
        "classmap": [
            "app/commands",
            "app/controllers",
            "app/models",
            "app/libraries",
            "app/lastfmapi",
            "app/database/migrations",
            "app/database/seeds",
            "app/tests/TestCase.php",
            "app/helpers"
        ],
        "psr-0": {
          "Classes": "app/libraries"    
        }
    },
    "scripts": {
        "post-install-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "post-update-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ]
    },
    "config": {
        "preferred-install": "dist"
    },
    "minimum-stability": "dev",
    "repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/changwuf31/remote"
    }
    ]
}

任何想法发生了什么?

1 个答案:

答案 0 :(得分:4)

好像你在使用Laravel 4.1。关于Rocketeer的文档说明了这一点:

  

如果您使用的是4.1,则可以跳到下一步。

您正在执行的是跳过 跳过,只有在您使用laravel 4.0时才会这样做。

删除您预览的内容,而不是do this

安装Rocketeer

现在在终端中键入以下内容:

composer require anahkiasen/rocketeer:dev-master.

您需要将这些行添加到providers文件中的app/config/app.php数组中:

'Rocketeer\RocketeerServiceProvider',

然后,这一行到aliases文件中的app/config/app.php数组:

'Rocketeer' => 'Rocketeer\Facades\Rocketeer',

然后发布配置:

artisan deploy:ignite

它应该有用。


你的作曲家json现在应该看起来像这样:

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "require": {
        "laravel/framework": "4.1.*",
        "way/generators": "2.*",
        "madewithlove/laravel-oauth2": "0.4.*",
        "nesbot/Carbon": "*",
        "anahkiasen/rocketeer": "dev-master"
    },
    "autoload": {
        "classmap": [
            "app/commands",
            "app/controllers",
            "app/models",
            "app/libraries",
            "app/lastfmapi",
            "app/database/migrations",
            "app/database/seeds",
            "app/tests/TestCase.php",
            "app/helpers"
        ],
        "psr-0": {
          "Classes": "app/libraries"    
        }
    },
    "scripts": {
        "post-install-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "post-update-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ]
    },
    "config": {
        "preferred-install": "dist"
    },
    "minimum-stability": "dev"
}