JeffreyWay / Laravel-4-Generators

Rapidly speed up your Laravel workflow with generators
https://packagist.org/packages/way/generators
MIT License
27 stars 9 forks source link

Fresh install onto laravel 4.2 and requires illuminate/support ~5.0 error #427

Closed teethgrinder closed 9 years ago

teethgrinder commented 9 years ago

Hello,

I am trying to install generators on a fresh 4.2 laravel install. I use "way/generators": "2.*". When I composer update --dev instead I get an error message

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

  Problem 1
    - Installation request for way/generators dev-master -> satisfiable by way/generators[dev-master].
    - way/generators dev-master requires illuminate/support ~5.0 -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

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

I use the latest composer. Any helps? Thanks

andrewhood125 commented 9 years ago

@teethgrinder I get did a composer create-project laravel/laravel test and added way/generators locked to ~2.0 in require-dev and was unable to replicate the issue. It looks like for some reason it's looking for dev-master. Anything 3.0 or greater requires laravel 5. Can you paste your composer.json?

teethgrinder commented 9 years ago
{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "laravel/framework": "4.2.*",
        "frozennode/administrator": "dev-master",
        "way/generators": "2.*"
    },
    "autoload": {
        "classmap": [
            "app/commands",
            "app/controllers",
            "app/models",
            "app/database/migrations",
            "app/database/seeds",
            "app/tests/TestCase.php"
        ]
    },
    "scripts": {
        "post-install-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "post-update-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize",
            "php artisan asset:publish frozennode/administrator"
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ]
    },
    "config": {
        "preferred-install": "dist"
    },
    "minimum-stability": "stable",
    "require-dev": {
        "way/generators": "dev-master"
    }
}
andrewhood125 commented 9 years ago

You have way/generators in their twice.

  1. Remove it from under "require"
  2. Change the version from "dev-master" to "~2.0" in "require-dev"
teethgrinder commented 9 years ago

I dont know how it is added there but removed them and works now. Thanks Andrew

andrewhood125 commented 9 years ago

No prob @teethgrinder