Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
aetonsi opened this issue May 4, 2022 · 3 comments
Closed
Labels

Comments

@aetonsi
Copy link

aetonsi commented May 4, 2022

Versions:

  • ide-helper Version: ^2.12.0
  • Laravel Version: 6.20.44
  • PHP Version: 7.4.29

Question:

When i run composer require --dev barryvdh/laravel-ide-helper, i get a composer error, but it isn't clear to me what's the problem.
It says ... require illuminate/console ^8 || ^9 -> found illuminate/console[v8.0.0 ... so i don't understand what is going wrong.
Here's the log:

PS C:\projects\projectX> composer require --dev barryvdh/laravel-ide-helper
./composer.json has been updated
Running composer update barryvdh/laravel-ide-helper
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - barryvdh/laravel-ide-helper[v2.12.0, ..., 2.12.x-dev] require illuminate/console ^8 || ^9 -> found illuminate/console[v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev] but these were not loaded, likely because it conflicts with another require.   
    - Root composer.json requires barryvdh/laravel-ide-helper ^2.12 -> satisfiable by barryvdh/laravel-ide-helper[v2.12.0, ..., 2.12.x-dev].     

You can also try re-running composer require with an explicit version constraint, e.g. "composer require barryvdh/laravel-ide-helper:*" to figure out if any version is installable, or "composer require barryvdh/laravel-ide-helper:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

And here's the full composer.json:

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "require": {
        "php": "^7.2",
        "astrotomic/laravel-translatable": "^11.9",
        "fideloper/proxy": "^4.0",
	"intervention/image": "^2.7",
        "laravel/framework": "^6.0",
        "laravel/tinker": "^1.0",
        "laravelcollective/html": "^6.0",
        "tymon/jwt-auth": "^1.0"
    },
    "require-dev": {
        "filp/whoops": "^2.0",
        "fzaninotto/faker": "^1.4",
        "mockery/mockery": "^1.0",
        "nunomaduro/collision": "^3.0",
        "phpunit/phpunit": "^8.0"
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "autoload": {
        "psr-4": {
            "App\\": "app/"
        },
        "classmap": [
            "database/seeds",
            "database/factories"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ]
    }
}
@mfn
Copy link
Collaborator

mfn commented May 4, 2022

Laravel 6 hasn't been supported for some time, see #1114

I guess the docs/readme could be made clearer about this.

@aetonsi
Copy link
Author

aetonsi commented May 4, 2022

Thank you, i didn't know that!
Since this project won't be updated to Laravel 7+, I simply installed version ide helper v2.8 and it is now working.
I'm closing the issue.

@aetonsi aetonsi closed this as completed May 4, 2022
mfn added a commit that referenced this issue May 4, 2022
barryvdh pushed a commit that referenced this issue May 21, 2022
renaforsberg824 added a commit to renaforsberg824/ide-helper-laravel-developer that referenced this issue Oct 5, 2022
lisadeloach63 added a commit to lisadeloach63/ide-helper-reso-laravel that referenced this issue Oct 7, 2022
sadafrangian3 pushed a commit to sadafrangian3/ide-helper-laravel that referenced this issue Oct 18, 2022
smile1130 added a commit to smile1130/laravel-IDE that referenced this issue Jun 16, 2023
@danydevco
Copy link

danydevco commented Jan 28, 2024

I can install with this command
composer require --dev barryvdh/laravel-ide-helper --update-with-all-dependencies

d3v2a pushed a commit to d3v2a/laravel-ide-helper that referenced this issue Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants