2016-03-23 3 views
2

Я пытаюсь установить Laravel 5 Extended Generators через Composer, используя следующую команду: composer require laracasts/generators --dev.Laravel 5 - не удается установить ларакасты/генераторы

Я получил сообщение об ошибке:

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. Что может быть проблемой здесь?

ответ

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" 
     } 
    ], 
Смежные вопросы