【问题标题】:Laravel 5 - cannot install laracasts/generatorsLaravel 5 - 无法安装 laracasts/generators
【发布时间】:2016-03-23 19:21:48
【问题描述】:

我正在尝试通过 Composer 安装 Laravel 5 Extended Generators,使用以下命令:composer require laracasts/generators --dev

我收到此错误消息:

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

  Problem 1
    - The requested package way/generators dev-feature/laravel-5-stable could not be found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setti                        ng
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

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

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

我使用的 Laravel 版本是 5.2。这可能是什么问题?

【问题讨论】:

    标签: php laravel laravel-5 composer-php


    【解决方案1】:

    我最终找到了解决这个问题的方法here。基本上,composer.json 应该是这样的:

    "require-dev": {
            "fzaninotto/faker": "~1.4",
            "mockery/mockery": "0.9.*",
            "phpunit/phpunit": "~4.0",
            "phpspec/phpspec": "~2.1",
            "xethron/migrations-generator": "dev-l5",
            "way/generators": "dev-feature/laravel-five-stable"
        },
    "repositories": [
            {
                "type": "git",
                "url": "https://github.com/jamisonvalenta/Laravel-4-Generators.git"
            }
        ],
    

    【讨论】:

      猜你喜欢
      • 2015-07-31
      • 2016-04-09
      • 2015-09-04
      • 1970-01-01
      • 2015-08-29
      • 1970-01-01
      • 2016-08-10
      • 2016-04-08
      • 2023-01-30
      相关资源
      最近更新 更多