簡體   English   中英

Laravel 5 - 無法安裝 Laracasts/生成器

[英]Laravel 5 - cannot install laracasts/generators

我正在嘗試通過 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。 這里可能有什么問題?

我最終在這里找到了解決此問題的方法。 基本上,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"
        }
    ],

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM